mrfakename commited on
Commit
5921fdd
1 Parent(s): b8642be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -226,12 +226,12 @@ def sync_db():
226
  # time.sleep(60 * 5)
227
  time.sleep(5)
228
  print("Uploading DB")
229
- api.upload_file(
230
  path_or_fileobj='database.db',
231
  path_in_repo='database.db',
232
  repo_id=os.getenv('DATASET_ID'),
233
  repo_type='dataset'
234
- )
235
  if os.getenv('HF_ID'):
236
  restart_thread = threading.Thread(target=restart_space)
237
  restart_thread.daemon = True
 
226
  # time.sleep(60 * 5)
227
  time.sleep(5)
228
  print("Uploading DB")
229
+ print(api.upload_file(
230
  path_or_fileobj='database.db',
231
  path_in_repo='database.db',
232
  repo_id=os.getenv('DATASET_ID'),
233
  repo_type='dataset'
234
+ ))
235
  if os.getenv('HF_ID'):
236
  restart_thread = threading.Thread(target=restart_space)
237
  restart_thread.daemon = True