Update app.py
Browse files
app.py
CHANGED
|
@@ -415,8 +415,6 @@ with gr.Blocks(css="""
|
|
| 415 |
gr.Markdown("### Handover Summary")
|
| 416 |
checklist_output = gr.Textbox(label="Checklist Summary")
|
| 417 |
missing_output = gr.Textbox(label="Missing Items")
|
| 418 |
-
# Add an output for Open Punch Items for debugging
|
| 419 |
-
open_punch_items_output = gr.Number(label="Open Punch Items (Debug)")
|
| 420 |
pdf_output = gr.File(label="Download PDF Report", type="filepath", interactive=False) # Output only, no auto-download
|
| 421 |
pdf_debug = gr.Textbox(label="PDF Debug Output") # Temporary debug output
|
| 422 |
|
|
@@ -426,7 +424,7 @@ with gr.Blocks(css="""
|
|
| 426 |
inputs=[logs_input, qa_input, punch_input],
|
| 427 |
outputs=[
|
| 428 |
score_output, checklist_output, missing_output, status_output, progress_output,
|
| 429 |
-
gr.State(), gr.State(), gr.State(), gr.State(),
|
| 430 |
]
|
| 431 |
).then(
|
| 432 |
fn=generate_pdf,
|
|
@@ -436,7 +434,7 @@ with gr.Blocks(css="""
|
|
| 436 |
fn=create_salesforce_record,
|
| 437 |
inputs=[
|
| 438 |
score_output, checklist_output, missing_output, status_output,
|
| 439 |
-
gr.State(), gr.State(), gr.State(), gr.State(),
|
| 440 |
],
|
| 441 |
outputs=None # No UI output for Salesforce status
|
| 442 |
)
|
|
|
|
| 415 |
gr.Markdown("### Handover Summary")
|
| 416 |
checklist_output = gr.Textbox(label="Checklist Summary")
|
| 417 |
missing_output = gr.Textbox(label="Missing Items")
|
|
|
|
|
|
|
| 418 |
pdf_output = gr.File(label="Download PDF Report", type="filepath", interactive=False) # Output only, no auto-download
|
| 419 |
pdf_debug = gr.Textbox(label="PDF Debug Output") # Temporary debug output
|
| 420 |
|
|
|
|
| 424 |
inputs=[logs_input, qa_input, punch_input],
|
| 425 |
outputs=[
|
| 426 |
score_output, checklist_output, missing_output, status_output, progress_output,
|
| 427 |
+
gr.State(), gr.State(), gr.State(), gr.State(), gr.State(), status_output
|
| 428 |
]
|
| 429 |
).then(
|
| 430 |
fn=generate_pdf,
|
|
|
|
| 434 |
fn=create_salesforce_record,
|
| 435 |
inputs=[
|
| 436 |
score_output, checklist_output, missing_output, status_output,
|
| 437 |
+
gr.State(), gr.State(), gr.State(), gr.State(), gr.State(), pdf_output
|
| 438 |
],
|
| 439 |
outputs=None # No UI output for Salesforce status
|
| 440 |
)
|