Update Gradio app to include detailed output for important items in diagnosis results. Added a new Dataframe for important item state aggregation and adjusted output parameters for the diagnosis process.
Browse files
app.py
CHANGED
|
@@ -295,14 +295,17 @@ with gr.Blocks(css=".gradio-container {overflow: auto !important;}") as demo:
|
|
| 295 |
datetime_str1 = gr.Textbox(label="診断基準日時")
|
| 296 |
window_minutes1 = gr.Number(label="さかのぼる時間幅(分)", value=60)
|
| 297 |
run_btn1 = gr.Button("診断実行")
|
|
|
|
| 298 |
result_df_all = gr.Dataframe(label="全項目の状態集計")
|
| 299 |
result_df_imp = gr.Dataframe(label="重要項目全体の状態集計")
|
|
|
|
| 300 |
summary_output = gr.Textbox(label="サマリー")
|
| 301 |
json_output = gr.Json(label="JSON集計結果")
|
|
|
|
| 302 |
run_btn1.click(
|
| 303 |
diagnose_process_range,
|
| 304 |
inputs=[process_name1, datetime_str1, window_minutes1],
|
| 305 |
-
outputs=[result_df_all, result_df_imp,
|
| 306 |
)
|
| 307 |
|
| 308 |
with gr.Tab("傾向検出"):
|
|
|
|
| 295 |
datetime_str1 = gr.Textbox(label="診断基準日時")
|
| 296 |
window_minutes1 = gr.Number(label="さかのぼる時間幅(分)", value=60)
|
| 297 |
run_btn1 = gr.Button("診断実行")
|
| 298 |
+
|
| 299 |
result_df_all = gr.Dataframe(label="全項目の状態集計")
|
| 300 |
result_df_imp = gr.Dataframe(label="重要項目全体の状態集計")
|
| 301 |
+
result_df_imp_items = gr.Dataframe(label="重要項目ごとの状態集計")
|
| 302 |
summary_output = gr.Textbox(label="サマリー")
|
| 303 |
json_output = gr.Json(label="JSON集計結果")
|
| 304 |
+
|
| 305 |
run_btn1.click(
|
| 306 |
diagnose_process_range,
|
| 307 |
inputs=[process_name1, datetime_str1, window_minutes1],
|
| 308 |
+
outputs=[result_df_all, result_df_imp, result_df_imp_items, summary_output, json_output]
|
| 309 |
)
|
| 310 |
|
| 311 |
with gr.Tab("傾向検出"):
|