Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,6 +36,7 @@ def init_db():
|
|
| 36 |
username = api.whoami()
|
| 37 |
print(username)
|
| 38 |
print(username.name)
|
|
|
|
| 39 |
files = api.list_repo_files(repo_id=DATASET_REPO_ID, repo_type="dataset")
|
| 40 |
|
| 41 |
if FILENAME in files:
|
|
|
|
| 36 |
username = api.whoami()
|
| 37 |
print(username)
|
| 38 |
print(username.name)
|
| 39 |
+
DATASET_REPO_ID = DATASET_REPO_ID.replace("YOUR_USERNAME", username)
|
| 40 |
files = api.list_repo_files(repo_id=DATASET_REPO_ID, repo_type="dataset")
|
| 41 |
|
| 42 |
if FILENAME in files:
|