CognitiveScience commited on
Commit
dd7f2cf
1 Parent(s): d648e2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,7 +31,7 @@ from datasets import load_dataset
31
  #dataset = load_dataset("csv", data_files="./data.csv")
32
 
33
 
34
- DB_FILE = "./reviews1.db"
35
 
36
  TOKEN = os.environ.get('HF_KEY')
37
 
@@ -49,7 +49,7 @@ repo.git_pull()
49
  #login(token=TOKEN2)
50
 
51
  # Set db to latest
52
- shutil.copyfile("./reviews.db", DB_FILE)
53
 
54
  # Create table if it doesn't already exist
55
 
@@ -213,7 +213,7 @@ def backup_db_csv():
213
  # #return reviews, total_reviews
214
 
215
  scheduler1 = BackgroundScheduler()
216
- scheduler1.add_job(func=run_actr, trigger="interval", seconds=6)
217
  scheduler1.start()
218
 
219
  scheduler2 = BackgroundScheduler()
 
31
  #dataset = load_dataset("csv", data_files="./data.csv")
32
 
33
 
34
+ DB_FILE = "./reviews.db"
35
 
36
  TOKEN = os.environ.get('HF_KEY')
37
 
 
49
  #login(token=TOKEN2)
50
 
51
  # Set db to latest
52
+ #shutil.copyfile("./reviews.db", DB_FILE)
53
 
54
  # Create table if it doesn't already exist
55
 
 
213
  # #return reviews, total_reviews
214
 
215
  scheduler1 = BackgroundScheduler()
216
+ scheduler1.add_job(func=run_actr, trigger="interval", seconds=300)
217
  scheduler1.start()
218
 
219
  scheduler2 = BackgroundScheduler()