Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
mrfakename
commited on
Commit
•
1543122
1
Parent(s):
06ba185
Update app.py
Browse files
app.py
CHANGED
@@ -313,11 +313,11 @@ def restart_space():
|
|
313 |
print("Restarting space")
|
314 |
api.restart_space(repo_id=os.getenv('HF_ID'))
|
315 |
def sync_db():
|
316 |
-
api = HfApi(
|
317 |
-
token=os.getenv('HF_TOKEN')
|
318 |
-
)
|
319 |
while True:
|
320 |
time.sleep(60 * 10)
|
|
|
|
|
|
|
321 |
print("Uploading DB")
|
322 |
api.upload_file(
|
323 |
path_or_fileobj='database.db',
|
|
|
313 |
print("Restarting space")
|
314 |
api.restart_space(repo_id=os.getenv('HF_ID'))
|
315 |
def sync_db():
|
|
|
|
|
|
|
316 |
while True:
|
317 |
time.sleep(60 * 10)
|
318 |
+
api = HfApi(
|
319 |
+
token=os.getenv('HF_TOKEN')
|
320 |
+
)
|
321 |
print("Uploading DB")
|
322 |
api.upload_file(
|
323 |
path_or_fileobj='database.db',
|