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 ใ
|