Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def process_image(input_image):
|
|
| 31 |
# Create the Gradio interface
|
| 32 |
iface = gr.Interface(
|
| 33 |
fn=process_image, # The function to be called
|
| 34 |
-
inputs=gr.Image(type="
|
| 35 |
outputs=gr.Image(type="numpy"), # Output type
|
| 36 |
title="Image Processor", # Title of the interface
|
| 37 |
description="Upload an image and get a processed image as output." # Description of the interface
|
|
|
|
| 31 |
# Create the Gradio interface
|
| 32 |
iface = gr.Interface(
|
| 33 |
fn=process_image, # The function to be called
|
| 34 |
+
inputs=gr.Image(type="numpy"), # Input type auto-detects the type
|
| 35 |
outputs=gr.Image(type="numpy"), # Output type
|
| 36 |
title="Image Processor", # Title of the interface
|
| 37 |
description="Upload an image and get a processed image as output." # Description of the interface
|