MariaK commited on
Commit
554fea9
1 Parent(s): 0f1f754

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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