Spaces:
Runtime error
Runtime error
ShahzebKhoso
commited on
Commit
•
33ec714
1
Parent(s):
988617d
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,8 @@ def super_resolve(image):
|
|
35 |
return output_image
|
36 |
|
37 |
# Create the Gradio interface
|
38 |
-
inputs = gr.
|
39 |
-
outputs = gr.
|
40 |
|
41 |
gr.Interface(fn=super_resolve, inputs=inputs, outputs=outputs, title="Image Super-Resolution with Swin2SR",
|
42 |
description="Upload an image to upscale it using the Swin2SR model for real-world super-resolution."
|
|
|
35 |
return output_image
|
36 |
|
37 |
# Create the Gradio interface
|
38 |
+
inputs = gr.Image(type="pil", label="Upload an Image")
|
39 |
+
outputs = gr.Image(type="pil", label="Super-Resolved Image")
|
40 |
|
41 |
gr.Interface(fn=super_resolve, inputs=inputs, outputs=outputs, title="Image Super-Resolution with Swin2SR",
|
42 |
description="Upload an image to upscale it using the Swin2SR model for real-world super-resolution."
|