Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -53,14 +53,14 @@ def add_new_eval(
|
|
53 |
|
54 |
current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
55 |
if repo_id in model_list['model'].tolist():
|
56 |
-
|
57 |
else:
|
58 |
# Is the model info correctly filled?
|
59 |
try:
|
60 |
model_info = API.model_info(repo_id=repo_id)
|
61 |
except Exception:
|
62 |
-
|
63 |
-
return
|
64 |
|
65 |
model_size = get_model_size(model_info=model_info)
|
66 |
|
|
|
53 |
|
54 |
current_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
55 |
if repo_id in model_list['model'].tolist():
|
56 |
+
return 'This model has already been run!'
|
57 |
else:
|
58 |
# Is the model info correctly filled?
|
59 |
try:
|
60 |
model_info = API.model_info(repo_id=repo_id)
|
61 |
except Exception:
|
62 |
+
|
63 |
+
return "Could not find information for model %s" % (model)
|
64 |
|
65 |
model_size = get_model_size(model_info=model_info)
|
66 |
|