CognitiveScience commited on
Commit
6fd306e
1 Parent(s): c652a61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -39,7 +39,7 @@ repo = huggingface_hub.Repository(
39
  )
40
  repo.git_pull()
41
 
42
- TOKEN2 = "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" #
43
 
44
 
45
  #login(token=TOKEN2)
@@ -162,15 +162,15 @@ def backup_db_csv():
162
  # #return reviews, total_reviews
163
 
164
  scheduler2 = BackgroundScheduler()
165
- scheduler2.add_job(func=run_actr, trigger="interval", seconds=6)
166
  scheduler2.start()
167
 
168
  scheduler2 = BackgroundScheduler()
169
- scheduler2.add_job(func=backup_db, trigger="interval", seconds=13)
170
  scheduler2.start()
171
 
172
  scheduler3 = BackgroundScheduler()
173
- scheduler3.add_job(func=backup_db_csv, trigger="interval", seconds=15)
174
  scheduler3.start()
175
 
176
  demo.launch()
 
39
  )
40
  repo.git_pull()
41
 
42
+ #TOKEN2 = HF_TOKEN
43
 
44
 
45
  #login(token=TOKEN2)
 
162
  # #return reviews, total_reviews
163
 
164
  scheduler2 = BackgroundScheduler()
165
+ scheduler2.add_job(func=run_actr, trigger="interval", seconds=3600)
166
  scheduler2.start()
167
 
168
  scheduler2 = BackgroundScheduler()
169
+ scheduler2.add_job(func=backup_db, trigger="interval", seconds=3633)
170
  scheduler2.start()
171
 
172
  scheduler3 = BackgroundScheduler()
173
+ scheduler3.add_job(func=backup_db_csv, trigger="interval", seconds=3666)
174
  scheduler3.start()
175
 
176
  demo.launch()