Commit
•
a36dbdb
1
Parent(s):
6ccb728
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def verify_demo(repo_id):
|
|
58 |
if len(split_repo_id) > 2:
|
59 |
repo_id = "/".join(split_repo_id[-2:])
|
60 |
|
61 |
-
if
|
62 |
raise gr.Error(f"Username {user_name} has already passed the assessment!")
|
63 |
|
64 |
try:
|
|
|
58 |
if len(split_repo_id) > 2:
|
59 |
repo_id = "/".join(split_repo_id[-2:])
|
60 |
|
61 |
+
if (all_results["username"] == user_name).any():
|
62 |
raise gr.Error(f"Username {user_name} has already passed the assessment!")
|
63 |
|
64 |
try:
|