rzanoli commited on
Commit
fc7c800
·
1 Parent(s): b0db80c

Remove graph visualization for prompt

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. src/display/css_html_js.py +10 -0
app.py CHANGED
@@ -691,7 +691,7 @@ with demo:
691
  with gr.Row():
692
  gr.Plot(value=line_chart(LEADERBOARD_DF), elem_id="line-chart")
693
  gr.Plot(value=boxplot_per_task(LEADERBOARD_DF, BASELINES), elem_id="boxplot-task")
694
- gr.Plot(value=boxplot_prompts_per_task(LEADERBOARD_DF), elem_id="boxplot-prompt-task")
695
 
696
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
697
 
 
691
  with gr.Row():
692
  gr.Plot(value=line_chart(LEADERBOARD_DF), elem_id="line-chart")
693
  gr.Plot(value=boxplot_per_task(LEADERBOARD_DF, BASELINES), elem_id="boxplot-task")
694
+ #gr.Plot(value=boxplot_prompts_per_task(LEADERBOARD_DF), elem_id="boxplot-prompt-task")
695
 
696
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
697
 
src/display/css_html_js.py CHANGED
@@ -95,6 +95,16 @@ custom_css = """
95
  border: 0
96
  }
97
 
 
 
 
 
 
 
 
 
 
 
98
  """
99
 
100
  get_window_url_params = """
 
95
  border: 0
96
  }
97
 
98
+ /* === Added scaling for plots === */
99
+ #line-chart,
100
+ #boxplot-task {
101
+ max-width: 100%;
102
+ width: 100%;
103
+ height: auto;
104
+ margin: 0 auto;
105
+ display: block;
106
+ }
107
+
108
  """
109
 
110
  get_window_url_params = """