Update app.py
Browse files
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],
|
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__":
|