lewtun HF staff commited on
Commit
00d4e31
1 Parent(s): 9d75c96

Simplify submission repo name

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -21,6 +21,7 @@ LOCAL_REPO = "submission_repo"
21
  ## TODO ##
22
  # 1. Add check that fields are nested under `tasks` field correctly
23
  # 2. Add check that names of tasks and datasets are valid
 
24
 
25
 
26
  ###########
@@ -117,7 +118,7 @@ if submit_button and submission_errors == 0:
117
  submission_name = json_data["submission_name"]
118
 
119
  # Create submission dataset under benchmarks ORG
120
- dataset_repo_url = f"https://huggingface.co/datasets/GEM-submissions/gem-{user_name}"
121
  repo = Repository(
122
  local_dir=LOCAL_REPO,
123
  clone_from=dataset_repo_url,
@@ -146,7 +147,7 @@ if submit_button and submission_errors == 0:
146
  "dataset": "GEM/references",
147
  "task": 1,
148
  "model": "gem",
149
- "submission_dataset": f"GEM-submissions/gem-{user_name}",
150
  "submission_id": submission_id,
151
  "col_mapping": {},
152
  "split": "test",
 
21
  ## TODO ##
22
  # 1. Add check that fields are nested under `tasks` field correctly
23
  # 2. Add check that names of tasks and datasets are valid
24
+ # 3. Decide whether we should have 1 dataset repo per participant or 1 repo per submission
25
 
26
 
27
  ###########
 
118
  submission_name = json_data["submission_name"]
119
 
120
  # Create submission dataset under benchmarks ORG
121
+ dataset_repo_url = f"https://huggingface.co/datasets/GEM-submissions/{user_name}"
122
  repo = Repository(
123
  local_dir=LOCAL_REPO,
124
  clone_from=dataset_repo_url,
 
147
  "dataset": "GEM/references",
148
  "task": 1,
149
  "model": "gem",
150
+ "submission_dataset": f"GEM-submissions/{user_name}",
151
  "submission_id": submission_id,
152
  "col_mapping": {},
153
  "split": "test",