Clémentine commited on
Commit
8ce97f8
1 Parent(s): 6e7afd4
Files changed (1) hide show
  1. app.py +12 -11
app.py CHANGED
@@ -60,7 +60,7 @@ def add_new_eval(
60
  "organisation": organisation,
61
  "mail": mail,
62
  }
63
- eval_results[level].add_item(eval_entry)
64
  eval_results[level].push_to_hub(f"{owner}/BALM_ResultsLevel{level}", token=BALM_TOKEN, split="dev")
65
 
66
  success_message = f"Model {model} submitted by {organisation}."
@@ -127,21 +127,21 @@ with demo:
127
  value=eval_dataframe_1, headers=COLS, datatype=TYPES, max_rows=20
128
  )
129
  with gr.Tab("Results on Test Set"):
130
- gr.Textbox(value="The test set is currently private! Come back when performances on the dev set increased!")
131
  with gr.Tab("Results: Level 2"):
132
  with gr.Tab("Results on Dev Set"):
133
  leaderboard_table_2 = gr.components.Dataframe(
134
  value=eval_dataframe_2, headers=COLS, datatype=TYPES, max_rows=20
135
  )
136
  with gr.Tab("Results on Test Set"):
137
- gr.Textbox(value="The test set is currently private! Come back when performances on the dev set increased!")
138
  with gr.Tab("Results: Level 3"):
139
  with gr.Tab("Results on Dev Set"):
140
  leaderboard_table_3 = gr.components.Dataframe(
141
  value=eval_dataframe_3, headers=COLS, datatype=TYPES, max_rows=20
142
  )
143
  with gr.Tab("Results on Test Set"):
144
- gr.Textbox(value="The test set is currently private! Come back when performances on the dev set increased!")
145
 
146
  refresh_button = gr.Button("Refresh")
147
  refresh_button.click(
@@ -155,13 +155,14 @@ with demo:
155
  )
156
 
157
  with gr.Accordion("Submit a new model for evaluation"):
158
- #with gr.Row():
159
- with gr.Column():
160
- level_of_dev = gr.Radio(["Level 1", "Level 2", "Level 3"], value="Level 1", label="Dev set")
161
- model_name_textbox = gr.Textbox(label="Model name")
162
- score = gr.Textbox(label="Score")
163
- organisation = gr.Textbox(label="Organisation")
164
- mail = gr.Textbox(label="Contact email")
 
165
 
166
  submit_button = gr.Button("Submit Eval")
167
  submission_result = gr.Markdown()
 
60
  "organisation": organisation,
61
  "mail": mail,
62
  }
63
+ eval_results[level] = eval_results[level].add_item(eval_entry)
64
  eval_results[level].push_to_hub(f"{owner}/BALM_ResultsLevel{level}", token=BALM_TOKEN, split="dev")
65
 
66
  success_message = f"Model {model} submitted by {organisation}."
 
127
  value=eval_dataframe_1, headers=COLS, datatype=TYPES, max_rows=20
128
  )
129
  with gr.Tab("Results on Test Set"):
130
+ gr.Textbox(label="Info", value="The test set is currently private! Come back when performances on the dev set increased!")
131
  with gr.Tab("Results: Level 2"):
132
  with gr.Tab("Results on Dev Set"):
133
  leaderboard_table_2 = gr.components.Dataframe(
134
  value=eval_dataframe_2, headers=COLS, datatype=TYPES, max_rows=20
135
  )
136
  with gr.Tab("Results on Test Set"):
137
+ gr.Textbox(label="Info", value="The test set is currently private! Come back when performances on the dev set increased!")
138
  with gr.Tab("Results: Level 3"):
139
  with gr.Tab("Results on Dev Set"):
140
  leaderboard_table_3 = gr.components.Dataframe(
141
  value=eval_dataframe_3, headers=COLS, datatype=TYPES, max_rows=20
142
  )
143
  with gr.Tab("Results on Test Set"):
144
+ gr.Textbox(label="Info", value="The test set is currently private! Come back when performances on the dev set increased!")
145
 
146
  refresh_button = gr.Button("Refresh")
147
  refresh_button.click(
 
155
  )
156
 
157
  with gr.Accordion("Submit a new model for evaluation"):
158
+ with gr.Row():
159
+ with gr.Column():
160
+ level_of_dev = gr.Radio(["Level 1", "Level 2", "Level 3"], value="Level 1", label="Dev set")
161
+ model_name_textbox = gr.Textbox(label="Model name")
162
+ score = gr.Textbox(label="Score")
163
+ with gr.Column():
164
+ organisation = gr.Textbox(label="Organisation")
165
+ mail = gr.Textbox(label="Contact email")
166
 
167
  submit_button = gr.Button("Submit Eval")
168
  submission_result = gr.Markdown()