jslin09 commited on
Commit
1a376b3
•
1 Parent(s): f492aff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ with gr.Blocks() as demo:
131
  btn3 = gr.Button("💾 下載")
132
  btn.click(random_next, inputs=[], outputs=[courtName, caseNo, prompt, filename])
133
  btn2.click(gen_template, inputs=[prompt, element, tag], outputs=[result])
134
- btn3.click(None, inputs=[result, filename], _js=js_download)
135
  # btn4.click(None, components=[result, element, tag])
136
 
137
  if __name__ == "__main__":
 
131
  btn3 = gr.Button("💾 下載")
132
  btn.click(random_next, inputs=[], outputs=[courtName, caseNo, prompt, filename])
133
  btn2.click(gen_template, inputs=[prompt, element, tag], outputs=[result])
134
+ btn3.click(None, inputs=[result, filename], js=js_download)
135
  # btn4.click(None, components=[result, element, tag])
136
 
137
  if __name__ == "__main__":