CognitiveScience commited on
Commit
7c60701
1 Parent(s): 75a3be9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,7 +29,7 @@ repo = huggingface_hub.Repository(
29
  repo.git_pull()
30
 
31
  # Set db to latest
32
- shutil.copyfile("./data/reviews0.db", DB_FILE)
33
 
34
  # Create table if it doesn't already exist
35
 
@@ -112,7 +112,7 @@ def load_data2():
112
  return reviews, total_reviews
113
 
114
  scheduler = BackgroundScheduler()
115
- scheduler.add_job(func=backup_db, trigger="interval", seconds=10)
116
  scheduler.start()
117
 
118
  #scheduler2 = BackgroundScheduler()
 
29
  repo.git_pull()
30
 
31
  # Set db to latest
32
+ #shutil.copyfile("./data/reviews0.db", DB_FILE)
33
 
34
  # Create table if it doesn't already exist
35
 
 
112
  return reviews, total_reviews
113
 
114
  scheduler = BackgroundScheduler()
115
+ scheduler.add_job(func=backup_db, trigger="interval", seconds=60)
116
  scheduler.start()
117
 
118
  #scheduler2 = BackgroundScheduler()