Spaces:
Runtime error
Runtime error
Refactor
Browse files
app.py
CHANGED
@@ -123,9 +123,8 @@ if submit_button and submission_errors == 0:
|
|
123 |
submission_time = str(int(datetime.now().timestamp()))
|
124 |
|
125 |
# Create submission dataset under benchmarks ORG
|
126 |
-
|
127 |
-
|
128 |
-
)
|
129 |
repo = Repository(
|
130 |
local_dir=LOCAL_REPO,
|
131 |
clone_from=dataset_repo_url,
|
@@ -153,7 +152,7 @@ if submit_button and submission_errors == 0:
|
|
153 |
"dataset": "GEM/references",
|
154 |
"task": 1,
|
155 |
"model": "gem",
|
156 |
-
"submission_dataset":
|
157 |
"submission_id": submission_id,
|
158 |
"col_mapping": {},
|
159 |
"split": "test",
|
|
|
123 |
submission_time = str(int(datetime.now().timestamp()))
|
124 |
|
125 |
# Create submission dataset under benchmarks ORG
|
126 |
+
submission_repo_id = f"GEM-submissions/{user_name}__{submission_name_formatted}__{submission_time}"
|
127 |
+
dataset_repo_url = f"https://huggingface.co/datasets/GEM-submissions/{submission_repo_id}"
|
|
|
128 |
repo = Repository(
|
129 |
local_dir=LOCAL_REPO,
|
130 |
clone_from=dataset_repo_url,
|
|
|
152 |
"dataset": "GEM/references",
|
153 |
"task": 1,
|
154 |
"model": "gem",
|
155 |
+
"submission_dataset": submission_repo_id,
|
156 |
"submission_id": submission_id,
|
157 |
"col_mapping": {},
|
158 |
"split": "test",
|