Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -111,4 +111,10 @@ def process_and_package(ai_response: str):
|
|
| 111 |
return zip_path
|
| 112 |
|
| 113 |
with gr.Blocks() as demo:
|
| 114 |
-
gr.Markdown("### Paste
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
return zip_path
|
| 112 |
|
| 113 |
with gr.Blocks() as demo:
|
| 114 |
+
gr.Markdown("### Paste AI response below; get downloadable zip of parsed files")
|
| 115 |
+
inp = gr.Textbox(lines=15, label="AI response text")
|
| 116 |
+
btn = gr.Button("Generate Zip")
|
| 117 |
+
out = gr.File(label="Download .zip")
|
| 118 |
+
btn.click(fn=process_and_package, inputs=inp, outputs=out)
|
| 119 |
+
|
| 120 |
+
demo.launch()
|