Spaces:
Runtime error
Runtime error
Redefine API at the top
Browse files- background_task.py +2 -2
background_task.py
CHANGED
|
@@ -18,6 +18,7 @@ subprocess.run("rm -rf .git/hooks".split())
|
|
| 18 |
repo = Repository(
|
| 19 |
local_dir=ELO_DIR, clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
| 20 |
)
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
class Model:
|
|
@@ -197,5 +198,4 @@ def init_matchmaking():
|
|
| 197 |
|
| 198 |
if __name__ == "__main__":
|
| 199 |
print("It's running!")
|
| 200 |
-
|
| 201 |
-
init_matchmaking()
|
|
|
|
| 18 |
repo = Repository(
|
| 19 |
local_dir=ELO_DIR, clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
| 20 |
)
|
| 21 |
+
api = HfApi()
|
| 22 |
|
| 23 |
|
| 24 |
class Model:
|
|
|
|
| 198 |
|
| 199 |
if __name__ == "__main__":
|
| 200 |
print("It's running!")
|
| 201 |
+
# init_matchmaking()
|
|
|