Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ examples = [['./input.jpg'],]
|
|
| 78 |
# Modify the interface to use live updates and file download
|
| 79 |
demo = gr.Interface(
|
| 80 |
fn=process, # The function to process the image
|
| 81 |
-
inputs=gr.
|
| 82 |
outputs=gr.File(label="Download Processed Image"), # Output as a file (download button)
|
| 83 |
examples=examples, # Example images for users to try
|
| 84 |
title=title, # Title of the app
|
|
|
|
| 78 |
# Modify the interface to use live updates and file download
|
| 79 |
demo = gr.Interface(
|
| 80 |
fn=process, # The function to process the image
|
| 81 |
+
inputs=gr.Image(type="numpy"), # Input type (image)
|
| 82 |
outputs=gr.File(label="Download Processed Image"), # Output as a file (download button)
|
| 83 |
examples=examples, # Example images for users to try
|
| 84 |
title=title, # Title of the app
|