Dineshpopuri commited on
Commit
22790b1
·
verified ·
1 Parent(s): 7c7eb88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -411,9 +411,8 @@ with gr.Blocks(css="""
411
  gr.Markdown("### Handover Summary")
412
  checklist_output = gr.Textbox(label="Checklist Summary")
413
  missing_output = gr.Textbox(label="Missing Items")
414
- pdf_output = gr.File(label="PDF Report (Auto-Download)") # Expect a file path
415
  pdf_debug = gr.Textbox(label="PDF Debug Output") # Temporary debug output
416
- salesforce_status = gr.Textbox(label="Salesforce Record Creation Status")
417
 
418
  # Chain the evaluation, PDF generation, and Salesforce record creation
419
  submit_btn.click(
@@ -428,7 +427,7 @@ with gr.Blocks(css="""
428
  ).then(
429
  fn=create_salesforce_record,
430
  inputs=[score_output, checklist_output, missing_output, status_output, gr.State(), gr.State(), gr.State(), gr.State(), gr.State(), pdf_output],
431
- outputs=salesforce_status
432
  )
433
  demo.launch()
434
 
 
411
  gr.Markdown("### Handover Summary")
412
  checklist_output = gr.Textbox(label="Checklist Summary")
413
  missing_output = gr.Textbox(label="Missing Items")
414
+ pdf_output = gr.File(label="PDF Report (Auto-Download)", type="filepath", interactive=False) # Output only, no upload
415
  pdf_debug = gr.Textbox(label="PDF Debug Output") # Temporary debug output
 
416
 
417
  # Chain the evaluation, PDF generation, and Salesforce record creation
418
  submit_btn.click(
 
427
  ).then(
428
  fn=create_salesforce_record,
429
  inputs=[score_output, checklist_output, missing_output, status_output, gr.State(), gr.State(), gr.State(), gr.State(), gr.State(), pdf_output],
430
+ outputs=None # No UI output for Salesforce status
431
  )
432
  demo.launch()
433