Spaces:
Sleeping
Sleeping
jedick
commited on
Commit
·
ff43104
1
Parent(s):
30b1c80
Fix NameError
Browse files- feedback.py +2 -1
feedback.py
CHANGED
|
@@ -17,7 +17,8 @@ USER_FEEDBACK_DIR.mkdir(parents=True, exist_ok=True)
|
|
| 17 |
|
| 18 |
if gr.NO_RELOAD:
|
| 19 |
# Create dataset if one doesn't exist
|
| 20 |
-
|
|
|
|
| 21 |
api.create_repo(REPO_ID, repo_type="dataset")
|
| 22 |
|
| 23 |
# Initialize commit scheduler if we're running on Hugging Face spaces
|
|
|
|
| 17 |
|
| 18 |
if gr.NO_RELOAD:
|
| 19 |
# Create dataset if one doesn't exist
|
| 20 |
+
api = HfApi()
|
| 21 |
+
if not api.repo_exists(REPO_ID, repo_type="dataset"):
|
| 22 |
api.create_repo(REPO_ID, repo_type="dataset")
|
| 23 |
|
| 24 |
# Initialize commit scheduler if we're running on Hugging Face spaces
|