el-el-san commited on
Commit
89f63ba
·
verified ·
1 Parent(s): 19c9a4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
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
- # show_download_button=True でPNG形式でダウンロードできるようにする
75
- result = gr.Image(label="Result", show_label=False, type="pil", elem_id="output_image", show_download_button=True)
 
 
 
 
 
 
 
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