Jiangxz commited on
Commit
e8a94b3
·
verified ·
1 Parent(s): d737e60

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -364,7 +364,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=custom_css) as iface:
364
  input = gr.Textbox(label="輸入動物名稱", placeholder="Enter animal name", elem_classes="file-background")
365
  api_key_input = gr.Textbox(type="password", label="輸入您的 API Key", placeholder="API authentication key", elem_classes="api-background")
366
  update_button = gr.Button("產製圖表", elem_id="submit-btn")
367
- file_output = gr.File(label="下載HTML文件", elem_classes="script-background")
368
  output = gr.HTML(label="動物生命週期圖表", elem_classes="text-background", visible=False)
369
  update_button.click(fn=generate_chart, inputs=[input, api_key_input], outputs=[file_output, output, output])
370
 
 
364
  input = gr.Textbox(label="輸入動物名稱", placeholder="Enter animal name", elem_classes="file-background")
365
  api_key_input = gr.Textbox(type="password", label="輸入您的 API Key", placeholder="API authentication key", elem_classes="api-background")
366
  update_button = gr.Button("產製圖表", elem_id="submit-btn")
367
+ file_output = gr.File(label="下載生命週期圖表", elem_classes="script-background")
368
  output = gr.HTML(label="動物生命週期圖表", elem_classes="text-background", visible=False)
369
  update_button.click(fn=generate_chart, inputs=[input, api_key_input], outputs=[file_output, output, output])
370