Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -664,8 +664,7 @@ try:
|
|
| 664 |
lab_site_filter = gr.Dropdown(label="Lab Site", choices=['All'], value='All', interactive=True)
|
| 665 |
equipment_type_filter = gr.Dropdown(label="Equipment Type", choices=['All'], value='All', interactive=True)
|
| 666 |
date_range_filter = gr.Slider(label="Date Range (Days from Today)", minimum=-365, maximum=0, step=1, value=[-30, 0])
|
| 667 |
-
|
| 668 |
-
submit_button = gr.Button("Analyze", variant="primary")
|
| 669 |
|
| 670 |
with gr.Column(scale=2):
|
| 671 |
with gr.Group(elem_classes="dashboard-container"):
|
|
@@ -707,13 +706,13 @@ try:
|
|
| 707 |
file_input.change(
|
| 708 |
fn=update_filters,
|
| 709 |
inputs=[file_input],
|
| 710 |
-
outputs=[lab_site_filter, equipment_type_filter
|
| 711 |
queue=False
|
| 712 |
)
|
| 713 |
|
| 714 |
submit_button.click(
|
| 715 |
fn=process_logs,
|
| 716 |
-
inputs=[file_input, lab_site_filter, equipment_type_filter, date_range_filter,
|
| 717 |
outputs=[summary_output, preview_output, usage_chart_output, device_cards_output, daily_log_trends_output, weekly_uptime_output, anomaly_alerts_output, downtime_chart_output, anomaly_output, amc_output, insights_output, pdf_output, last_modified_state]
|
| 718 |
)
|
| 719 |
|
|
|
|
| 664 |
lab_site_filter = gr.Dropdown(label="Lab Site", choices=['All'], value='All', interactive=True)
|
| 665 |
equipment_type_filter = gr.Dropdown(label="Equipment Type", choices=['All'], value='All', interactive=True)
|
| 666 |
date_range_filter = gr.Slider(label="Date Range (Days from Today)", minimum=-365, maximum=0, step=1, value=[-30, 0])
|
| 667 |
+
submit_button = gr.Button("Analyze", variant="primary")
|
|
|
|
| 668 |
|
| 669 |
with gr.Column(scale=2):
|
| 670 |
with gr.Group(elem_classes="dashboard-container"):
|
|
|
|
| 706 |
file_input.change(
|
| 707 |
fn=update_filters,
|
| 708 |
inputs=[file_input],
|
| 709 |
+
outputs=[lab_site_filter, equipment_type_filter.],
|
| 710 |
queue=False
|
| 711 |
)
|
| 712 |
|
| 713 |
submit_button.click(
|
| 714 |
fn=process_logs,
|
| 715 |
+
inputs=[file_input, lab_site_filter, equipment_type_filter, date_range_filter, last_modified_state],
|
| 716 |
outputs=[summary_output, preview_output, usage_chart_output, device_cards_output, daily_log_trends_output, weekly_uptime_output, anomaly_alerts_output, downtime_chart_output, anomaly_output, amc_output, insights_output, pdf_output, last_modified_state]
|
| 717 |
)
|
| 718 |
|