Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ def add_certified_user(hf_username, pass_percentage, submission_time):
|
|
| 72 |
"""
|
| 73 |
print("ADD CERTIFIED USER")
|
| 74 |
repo.git_pull()
|
| 75 |
-
history = pd.read_csv(CERTIFIED_USERS_FILENAME)
|
| 76 |
|
| 77 |
# Check if this hf_username is already in our dataset:
|
| 78 |
check = history.loc[history['hf_username'] == hf_username]
|
|
|
|
| 72 |
"""
|
| 73 |
print("ADD CERTIFIED USER")
|
| 74 |
repo.git_pull()
|
| 75 |
+
history = pd.read_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME))
|
| 76 |
|
| 77 |
# Check if this hf_username is already in our dataset:
|
| 78 |
check = history.loc[history['hf_username'] == hf_username]
|