clefourrier HF staff commited on
Commit
39f3e26
1 Parent(s): 6f03b05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,7 +37,7 @@ def get_dataframe_from_results(eval_results, split):
37
  local_df = eval_results[split]
38
  local_df = local_df.map(lambda row: {"model": model_hyperlink(row["url"], row["model"])})
39
  local_df = local_df.remove_columns(["system_prompt", "url"])
40
- local_df = local_df.rename_column("model", "Model name")
41
  local_df = local_df.rename_column("model_family", "Model family")
42
  local_df = local_df.rename_column("score", "Average score (%)")
43
  for i in [1, 2, 3]:
@@ -223,7 +223,7 @@ with demo:
223
  with gr.Row():
224
  with gr.Column():
225
  level_of_test = gr.Radio(["validation", "test"], value="validation", label="Split")
226
- model_name_textbox = gr.Textbox(label="Model name")
227
  model_family_textbox = gr.Textbox(label="Model family")
228
  system_prompt_textbox = gr.Textbox(label="System prompt example")
229
  url_textbox = gr.Textbox(label="Url to model information")
 
37
  local_df = eval_results[split]
38
  local_df = local_df.map(lambda row: {"model": model_hyperlink(row["url"], row["model"])})
39
  local_df = local_df.remove_columns(["system_prompt", "url"])
40
+ local_df = local_df.rename_column("model", "Agent name")
41
  local_df = local_df.rename_column("model_family", "Model family")
42
  local_df = local_df.rename_column("score", "Average score (%)")
43
  for i in [1, 2, 3]:
 
223
  with gr.Row():
224
  with gr.Column():
225
  level_of_test = gr.Radio(["validation", "test"], value="validation", label="Split")
226
+ model_name_textbox = gr.Textbox(label="Agent name")
227
  model_family_textbox = gr.Textbox(label="Model family")
228
  system_prompt_textbox = gr.Textbox(label="System prompt example")
229
  url_textbox = gr.Textbox(label="Url to model information")