Fix input_image.change event return type
Browse files
app.py
CHANGED
|
@@ -314,9 +314,10 @@ def create_ui() -> gr.Blocks:
|
|
| 314 |
outputs=[output_image, output_json]
|
| 315 |
)
|
| 316 |
|
| 317 |
-
# Also
|
| 318 |
input_image.change(
|
| 319 |
-
fn=lambda: (
|
|
|
|
| 320 |
outputs=[output_image, output_json]
|
| 321 |
)
|
| 322 |
|
|
|
|
| 314 |
outputs=[output_image, output_json]
|
| 315 |
)
|
| 316 |
|
| 317 |
+
# Also clear output on image upload for convenience
|
| 318 |
input_image.change(
|
| 319 |
+
fn=lambda x: (None, ""),
|
| 320 |
+
inputs=[input_image],
|
| 321 |
outputs=[output_image, output_json]
|
| 322 |
)
|
| 323 |
|