Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,11 +13,16 @@ def download_image(output_image):
|
|
13 |
return gradio.Interface.download(img_bytes, "output_image.png")
|
14 |
|
15 |
# define input and output interfaces
|
16 |
-
input_image = gr.inputs.Image(type="
|
17 |
-
output_image = gr.outputs.Image(type="
|
18 |
|
19 |
# define the download button
|
20 |
-
download_button = gr.
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
# create the interface
|
23 |
iface = gr.Interface(
|
|
|
13 |
return gradio.Interface.download(img_bytes, "output_image.png")
|
14 |
|
15 |
# define input and output interfaces
|
16 |
+
input_image = gr.inputs.Image(type="filepath", label="Input Image")
|
17 |
+
output_image = gr.outputs.Image(type="filepath", label="Output Image")
|
18 |
|
19 |
# define the download button
|
20 |
+
download_button = gr.Interface(
|
21 |
+
fn=download_image,
|
22 |
+
inputs=output_image,
|
23 |
+
outputs="download",
|
24 |
+
title="Download"
|
25 |
+
)
|
26 |
|
27 |
# create the interface
|
28 |
iface = gr.Interface(
|