LPX55
commited on
Commit
·
c378b41
1
Parent(s):
b2ba2e7
refactor(ui): enhance Dataframe and Log components in detection model evaluation
Browse files
app.py
CHANGED
@@ -439,7 +439,10 @@ with gr.Blocks() as detection_model_eval_playground:
|
|
439 |
predictions_df = gr.Dataframe(
|
440 |
label="Model Predictions",
|
441 |
headers=["Arch / Dataset", "By", "AI", "Real", "Label"],
|
442 |
-
datatype=["str", "str", "number", "number", "str"]
|
|
|
|
|
|
|
443 |
)
|
444 |
gallery = gr.Gallery(label="Post Processed Images", visible=True, columns=[4], rows=[2], container=False, height="auto", object_fit="contain", elem_id="post-gallery")
|
445 |
raw_json = gr.JSON(label="Raw Model Results", visible=False)
|
@@ -447,7 +450,7 @@ with gr.Blocks() as detection_model_eval_playground:
|
|
447 |
with gr.Accordion("Agent Logs", open=False, elem_id="agent-logs-accordion"):
|
448 |
with gr.Row():
|
449 |
with gr.Column():
|
450 |
-
context_intelligence_log = Log(label="Context Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["context_intelligence"],
|
451 |
ensemble_monitor_log = Log(label="Ensemble Monitor Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["ensemble_monitor"], tail=40)
|
452 |
with gr.Column():
|
453 |
weight_optimization_log = Log(label="Weight Optimization Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["weight_optimization"], tail=40)
|
|
|
439 |
predictions_df = gr.Dataframe(
|
440 |
label="Model Predictions",
|
441 |
headers=["Arch / Dataset", "By", "AI", "Real", "Label"],
|
442 |
+
datatype=["str", "str", "number", "number", "str"],
|
443 |
+
show_label=False,
|
444 |
+
row_count=(8, "dynamic")
|
445 |
+
|
446 |
)
|
447 |
gallery = gr.Gallery(label="Post Processed Images", visible=True, columns=[4], rows=[2], container=False, height="auto", object_fit="contain", elem_id="post-gallery")
|
448 |
raw_json = gr.JSON(label="Raw Model Results", visible=False)
|
|
|
450 |
with gr.Accordion("Agent Logs", open=False, elem_id="agent-logs-accordion"):
|
451 |
with gr.Row():
|
452 |
with gr.Column():
|
453 |
+
context_intelligence_log = Log(label="Context Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["context_intelligence"], tail=40)
|
454 |
ensemble_monitor_log = Log(label="Ensemble Monitor Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["ensemble_monitor"], tail=40)
|
455 |
with gr.Column():
|
456 |
weight_optimization_log = Log(label="Weight Optimization Log", dark=True, xterm_font_size=12, log_file=AGENT_LOG_FILES["weight_optimization"], tail=40)
|