Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
| 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",
|
| 237 |
-
["monkey.jpg",
|
| 238 |
-
["metropolis.jpg",
|
| 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,
|