Update app.py
Browse files
app.py
CHANGED
|
@@ -128,7 +128,7 @@ with gr.Blocks() as demo:
|
|
| 128 |
btn3 = gr.Button("下載")
|
| 129 |
btn.click(random_next, inputs=[], outputs=[courtName, caseNo, prompt, filename])
|
| 130 |
btn2.click(gen_template, inputs=[prompt, element, tag], outputs=[result])
|
| 131 |
-
btn3.click(None, inputs=[result, filename],
|
| 132 |
|
| 133 |
if __name__ == "__main__":
|
| 134 |
demo.launch() # 在遠端啟動時,需要 share=True 。
|
|
|
|
| 128 |
btn3 = gr.Button("下載")
|
| 129 |
btn.click(random_next, inputs=[], outputs=[courtName, caseNo, prompt, filename])
|
| 130 |
btn2.click(gen_template, inputs=[prompt, element, tag], outputs=[result])
|
| 131 |
+
btn3.click(None, inputs=[result, filename], _js=js_download)
|
| 132 |
|
| 133 |
if __name__ == "__main__":
|
| 134 |
demo.launch() # 在遠端啟動時,需要 share=True 。
|