LPX55 commited on
Commit
2af5a0c
·
1 Parent(s): 24db732

refactor(ui): adjust layout of logs and gallery in detection model evaluation

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -459,20 +459,21 @@ with gr.Blocks() as detection_model_eval_playground:
459
  predict_btn = gr.Button("Run Prediction")
460
  with gr.Column():
461
  processed_img = gr.Image(label="Processed Image", visible=False)
462
- gallery = gr.Gallery(label="Post Processed Images", visible=True, columns=[4], rows=[2], container=False, height="auto", object_fit="contain", elem_id="post-gallery")
463
  predictions_df = gr.Dataframe(
464
  label="Model Predictions",
465
  headers=["Arch / Dataset", "By", "AI", "Real", "Label"],
466
  datatype=["str", "str", "number", "number", "str"]
467
  )
 
468
  raw_json = gr.JSON(label="Raw Model Results", visible=False)
469
  consensus_md = gr.Markdown(label="Consensus", value="")
470
  with gr.Accordion("Agent Logs", open=False, elem_id="agent-logs-accordion"):
471
  with gr.Row():
472
- with gr.Column(scale=1):
473
  context_intelligence_log = Log(label="Context Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["context_intelligence"])
474
  ensemble_monitor_log = Log(label="Ensemble Monitor Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["ensemble_monitor"])
475
- with gr.Column(scale=1):
476
  weight_optimization_log = Log(label="Weight Optimization Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["weight_optimization"])
477
  forensic_log = Log(label="Forensic Anomaly Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["forensic_anomaly_detection"])
478
  system_health_log = Log(label="System Health Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["system_health"], visible=False)
 
459
  predict_btn = gr.Button("Run Prediction")
460
  with gr.Column():
461
  processed_img = gr.Image(label="Processed Image", visible=False)
462
+
463
  predictions_df = gr.Dataframe(
464
  label="Model Predictions",
465
  headers=["Arch / Dataset", "By", "AI", "Real", "Label"],
466
  datatype=["str", "str", "number", "number", "str"]
467
  )
468
+ gallery = gr.Gallery(label="Post Processed Images", visible=True, columns=[4], rows=[2], container=False, height="auto", object_fit="contain", elem_id="post-gallery")
469
  raw_json = gr.JSON(label="Raw Model Results", visible=False)
470
  consensus_md = gr.Markdown(label="Consensus", value="")
471
  with gr.Accordion("Agent Logs", open=False, elem_id="agent-logs-accordion"):
472
  with gr.Row():
473
+ with gr.Column():
474
  context_intelligence_log = Log(label="Context Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["context_intelligence"])
475
  ensemble_monitor_log = Log(label="Ensemble Monitor Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["ensemble_monitor"])
476
+ with gr.Column():
477
  weight_optimization_log = Log(label="Weight Optimization Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["weight_optimization"])
478
  forensic_log = Log(label="Forensic Anomaly Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["forensic_anomaly_detection"])
479
  system_health_log = Log(label="System Health Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["system_health"], visible=False)