Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,6 @@ def add_new_eval(
|
|
| 55 |
current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
| 56 |
if repo_id in model_list:
|
| 57 |
print('This model has already been run!')
|
| 58 |
-
break
|
| 59 |
else:
|
| 60 |
# Is the model info correctly filled?
|
| 61 |
try:
|
|
@@ -72,7 +71,7 @@ def add_new_eval(
|
|
| 72 |
|
| 73 |
request_dict = {
|
| 74 |
"model": repo_id,
|
| 75 |
-
"
|
| 76 |
"status": "PENDING",
|
| 77 |
"submitted_time": pd.to_datetime(current_time),
|
| 78 |
"task": task,
|
|
|
|
| 55 |
current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
| 56 |
if repo_id in model_list:
|
| 57 |
print('This model has already been run!')
|
|
|
|
| 58 |
else:
|
| 59 |
# Is the model info correctly filled?
|
| 60 |
try:
|
|
|
|
| 71 |
|
| 72 |
request_dict = {
|
| 73 |
"model": repo_id,
|
| 74 |
+
"leaderboard_version": "0",
|
| 75 |
"status": "PENDING",
|
| 76 |
"submitted_time": pd.to_datetime(current_time),
|
| 77 |
"task": task,
|