badaoui HF Staff commited on
Commit
8bc3c3a
·
verified ·
1 Parent(s): 02d37d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -166,7 +166,7 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
166
  with gr.Column(scale=4, elem_classes=["main-content"]):
167
  with gr.Column(visible=True, elem_classes=["current-view"]) as current_view:
168
  summary_display = gr.Plot(
169
- value=create_summary_page(Ci_results.df, Ci_results.available_models, COLORS=COLORS),
170
  label="",
171
  format="png",
172
  elem_classes=["plot-container"],
@@ -320,7 +320,7 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
320
  False,
321
  )
322
  else:
323
- fig = create_summary_page(Ci_results.df, Ci_results.available_models, COLORS=COLORS)
324
  return (
325
  description,
326
  links,
@@ -464,7 +464,7 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
464
  )
465
  else:
466
  if last_selected_model and Ci_results.df is not None and not Ci_results.df.empty and last_selected_model in Ci_results.df.index:
467
- fig, amd_txt, nvidia_txt = plot_model_stats(Ci_results.df, last_selected_model, COLORS=COLORS)
468
  return (
469
  gr.update(visible=True),
470
  gr.update(visible=False),
@@ -482,7 +482,7 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
482
  True,
483
  )
484
  else:
485
- fig = create_summary_page(Ci_results.df, Ci_results.available_models, COLORS=COLORS)
486
  return (
487
  gr.update(visible=True),
488
  gr.update(visible=False),
@@ -549,7 +549,7 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
549
  gr.update(visible=True),
550
  selected_model, True)
551
  else:
552
- fig, amd_txt, nvidia_txt = plot_model_stats(Ci_results.df, selected_model, COLORS=COLORS)
553
  return (
554
  fig,
555
  amd_txt,
 
166
  with gr.Column(scale=4, elem_classes=["main-content"]):
167
  with gr.Column(visible=True, elem_classes=["current-view"]) as current_view:
168
  summary_display = gr.Plot(
169
+ value=create_summary_page(Ci_results.df, Ci_results.available_models),
170
  label="",
171
  format="png",
172
  elem_classes=["plot-container"],
 
320
  False,
321
  )
322
  else:
323
+ fig = create_summary_page(Ci_results.df, Ci_results.available_models)
324
  return (
325
  description,
326
  links,
 
464
  )
465
  else:
466
  if last_selected_model and Ci_results.df is not None and not Ci_results.df.empty and last_selected_model in Ci_results.df.index:
467
+ fig, amd_txt, nvidia_txt = plot_model_stats(Ci_results.df, last_selected_model)
468
  return (
469
  gr.update(visible=True),
470
  gr.update(visible=False),
 
482
  True,
483
  )
484
  else:
485
+ fig = create_summary_page(Ci_results.df, Ci_results.available_models)
486
  return (
487
  gr.update(visible=True),
488
  gr.update(visible=False),
 
549
  gr.update(visible=True),
550
  selected_model, True)
551
  else:
552
+ fig, amd_txt, nvidia_txt = plot_model_stats(Ci_results.df, selected_model)
553
  return (
554
  fig,
555
  amd_txt,