hi-melnikov commited on
Commit
49498de
1 Parent(s): 1130d77

Fixing judgement typo

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. src/leaderboard/build_leaderboard.py +1 -1
app.py CHANGED
@@ -69,6 +69,7 @@ def build_demo():
69
 
70
  with gr.Column():
71
  model_name_textbox = gr.Textbox(label="Model name")
 
72
 
73
  def upload_file(file):
74
  file_path = file.name.split("/")[-1] if "/" in file.name else file.name
@@ -82,7 +83,7 @@ def build_demo():
82
  os.environ[RESET_JUDGEMENT_ENV] = "1"
83
  return file.name
84
 
85
- if model_name_textbox:
86
  file_output = gr.File()
87
  upload_button = gr.UploadButton(
88
  "Click to Upload & Submit Answers", file_types=["*"], file_count="single"
 
69
 
70
  with gr.Column():
71
  model_name_textbox = gr.Textbox(label="Model name")
72
+ submitter_username = gr.Textbox(label="Username")
73
 
74
  def upload_file(file):
75
  file_path = file.name.split("/")[-1] if "/" in file.name else file.name
 
83
  os.environ[RESET_JUDGEMENT_ENV] = "1"
84
  return file.name
85
 
86
+ if model_name_textbox and submitter_username:
87
  file_output = gr.File()
88
  upload_button = gr.UploadButton(
89
  "Click to Upload & Submit Answers", file_types=["*"], file_count="single"
src/leaderboard/build_leaderboard.py CHANGED
@@ -65,7 +65,7 @@ def download_openbench():
65
  subprocess.run(["ls", f"{DATA_ARENA_PATH}/model_answers/external/"], check=False)
66
 
67
  print("\nJudgement in openbench-eval")
68
- subprocess.run(["ls", f"{DATA_ARENA_PATH}/model_judgment/gpt-4-1106-preview"], check=False)
69
 
70
 
71
  def build_leadearboard_df():
 
65
  subprocess.run(["ls", f"{DATA_ARENA_PATH}/model_answers/external/"], check=False)
66
 
67
  print("\nJudgement in openbench-eval")
68
+ subprocess.run(["ls", f"{DATA_ARENA_PATH}/model_judgement/gpt-4-1106-preview"], check=False)
69
 
70
 
71
  def build_leadearboard_df():