Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ def certification(hf_username):
|
|
202 |
case "demo":
|
203 |
u7_usernames = hf_hub_download(USERNAMES_DATASET_ID, repo_type = "dataset", filename="usernames.csv", token=HF_TOKEN)
|
204 |
u7_users = pd.read_csv(u7_usernames)
|
205 |
-
if hf_username in u7_users['username']:
|
206 |
unit["best_result"] = 0
|
207 |
unit["best_model_id"] = "Demo check passed, no model id"
|
208 |
unit["passed_"] = True
|
|
|
202 |
case "demo":
|
203 |
u7_usernames = hf_hub_download(USERNAMES_DATASET_ID, repo_type = "dataset", filename="usernames.csv", token=HF_TOKEN)
|
204 |
u7_users = pd.read_csv(u7_usernames)
|
205 |
+
if hf_username in u7_users['username'].tolist():
|
206 |
unit["best_result"] = 0
|
207 |
unit["best_model_id"] = "Demo check passed, no model id"
|
208 |
unit["passed_"] = True
|