Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -295,7 +295,8 @@ with gr.Blocks() as agent_ui:
|
|
| 295 |
kw_density_out = gr.Textbox(label="Keyword Density", interactive=False)
|
| 296 |
|
| 297 |
# Crash Fix: Remove the initial 'latest_draft.txt' value
|
| 298 |
-
|
|
|
|
| 299 |
|
| 300 |
with gr.Column(scale=2):
|
| 301 |
gr.Markdown("### 2. Output & Preview")
|
|
@@ -365,7 +366,7 @@ with gr.Blocks() as agent_ui:
|
|
| 365 |
)
|
| 366 |
|
| 367 |
# Target the file download component inside the main_app tree
|
| 368 |
-
|
| 369 |
|
| 370 |
generate_btn.click(
|
| 371 |
fn=secure_generate,
|
|
|
|
| 295 |
kw_density_out = gr.Textbox(label="Keyword Density", interactive=False)
|
| 296 |
|
| 297 |
# Crash Fix: Remove the initial 'latest_draft.txt' value
|
| 298 |
+
|
| 299 |
+
file_download = gr.File(label="Download Draft Backup (.txt file)", visible=False, interactive=False)
|
| 300 |
|
| 301 |
with gr.Column(scale=2):
|
| 302 |
gr.Markdown("### 2. Output & Preview")
|
|
|
|
| 366 |
)
|
| 367 |
|
| 368 |
# Target the file download component inside the main_app tree
|
| 369 |
+
|
| 370 |
|
| 371 |
generate_btn.click(
|
| 372 |
fn=secure_generate,
|