kacapower commited on
Commit
d76c880
·
verified ·
1 Parent(s): bf53294

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- gr.File(label="Download Draft Backup (.txt file)", visible=False, interactive=False)
 
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
- file_download = main_app.children[0].children[0].children[4]
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,