Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,15 +53,15 @@ def launch(input_image):
|
|
| 53 |
print(f"Error processing the image: {str(e)}")
|
| 54 |
return "An error occurred while processing the image."
|
| 55 |
|
| 56 |
-
|
| 57 |
-
|
| 58 |
# Define the Gradio interface
|
| 59 |
iface = gr.Interface(
|
| 60 |
fn=launch,
|
| 61 |
-
inputs=gr.Image(type="pil"),
|
| 62 |
-
outputs=gr.Image(type="pil") #
|
| 63 |
)
|
| 64 |
|
|
|
|
|
|
|
| 65 |
# Launch the interface
|
| 66 |
iface.launch()
|
| 67 |
|
|
|
|
| 53 |
print(f"Error processing the image: {str(e)}")
|
| 54 |
return "An error occurred while processing the image."
|
| 55 |
|
|
|
|
|
|
|
| 56 |
# Define the Gradio interface
|
| 57 |
iface = gr.Interface(
|
| 58 |
fn=launch,
|
| 59 |
+
inputs=gr.Image(type="pil"),
|
| 60 |
+
outputs=gr.Image(type="pil", image_size=(640, 480)) # Specify size for output
|
| 61 |
)
|
| 62 |
|
| 63 |
+
|
| 64 |
+
|
| 65 |
# Launch the interface
|
| 66 |
iface.launch()
|
| 67 |
|