multimodalart HF Staff commited on
Commit
78ef85d
·
verified ·
1 Parent(s): 65c19a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -117,7 +117,7 @@ def infer_camera_edit(
117
  pil_images.append(image.convert("RGB"))
118
  elif hasattr(image, "name"):
119
  pil_images.append(Image.open(image.name).convert("RGB"))
120
- elif prev_output is not None:
121
  pil_images.append(prev_output.convert("RGB"))
122
 
123
  if len(pil_images) == 0:
@@ -233,9 +233,9 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
233
  # Examples
234
  gr.Examples(
235
  examples=[
236
- ["tool_of_the_sea.png", None, 45, 0, 0, False, 0, True, 1.0, 4, 568, 1024],
237
- ["monkey.jpg", None, -45, 5, 0, False, 0, True, 1.0, 4, 704, 1024],
238
- ["metropolis.jpg", None, 0, 0, -1, True, 0, True, 1.0, 4, 816, 1024],
239
  ],
240
  inputs=inputs,
241
  outputs=outputs,
 
117
  pil_images.append(image.convert("RGB"))
118
  elif hasattr(image, "name"):
119
  pil_images.append(Image.open(image.name).convert("RGB"))
120
+ elif prev_output:
121
  pil_images.append(prev_output.convert("RGB"))
122
 
123
  if len(pil_images) == 0:
 
233
  # Examples
234
  gr.Examples(
235
  examples=[
236
+ ["tool_of_the_sea.png", "", 45, 0, 0, False, 0, True, 1.0, 4, 568, 1024],
237
+ ["monkey.jpg", "", -45, 5, 0, False, 0, True, 1.0, 4, 704, 1024],
238
+ ["metropolis.jpg", "", 0, 0, -1, True, 0, True, 1.0, 4, 816, 1024],
239
  ],
240
  inputs=inputs,
241
  outputs=outputs,