Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -71,8 +71,15 @@ with gr.Blocks(css=css) as demo:
|
|
71 |
|
72 |
run_button = gr.Button("Run", scale=0)
|
73 |
|
74 |
-
#
|
75 |
-
result = gr.Image(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
with gr.Accordion("Advanced Settings", open=False):
|
78 |
|
|
|
71 |
|
72 |
run_button = gr.Button("Run", scale=0)
|
73 |
|
74 |
+
# PNG形式でダウンロードできるようにfile_formatを指定
|
75 |
+
result = gr.Image(
|
76 |
+
label="Result",
|
77 |
+
show_label=False,
|
78 |
+
type="pil",
|
79 |
+
elem_id="output_image",
|
80 |
+
show_download_button=True,
|
81 |
+
file_format="png"
|
82 |
+
)
|
83 |
|
84 |
with gr.Accordion("Advanced Settings", open=False):
|
85 |
|