CognitiveScience commited on
Commit
c854dc6
1 Parent(s): 7cffecf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -170,7 +170,7 @@ def load_data2():
170
  css="footer {visibility: hidden}"
171
  # Applying style to highlight the maximum value in each row
172
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
173
- with gr.Blocks() as demo:
174
  with gr.Row():
175
  with gr.Column():
176
  data = gr.Dataframe() #styler)
@@ -225,15 +225,15 @@ def backup_db_csv():
225
  # #return reviews, total_reviews
226
 
227
  scheduler1 = BackgroundScheduler()
228
- scheduler1.add_job(func=run_actr, trigger="interval", seconds=36)
229
  scheduler1.start()
230
 
231
  scheduler2 = BackgroundScheduler()
232
- scheduler2.add_job(func=backup_db, trigger="interval", seconds=3633000)
233
  scheduler2.start()
234
 
235
  scheduler3 = BackgroundScheduler()
236
- scheduler3.add_job(func=backup_db_csv, trigger="interval", seconds=3666000)
237
  scheduler3.start()
238
 
239
  demo.launch()
 
170
  css="footer {visibility: hidden}"
171
  # Applying style to highlight the maximum value in each row
172
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
173
+ with gr.Blocks(css=css) as demo:
174
  with gr.Row():
175
  with gr.Column():
176
  data = gr.Dataframe() #styler)
 
225
  # #return reviews, total_reviews
226
 
227
  scheduler1 = BackgroundScheduler()
228
+ scheduler1.add_job(func=run_actr, trigger="interval", seconds=3600)
229
  scheduler1.start()
230
 
231
  scheduler2 = BackgroundScheduler()
232
+ scheduler2.add_job(func=backup_db, trigger="interval", seconds=3633)
233
  scheduler2.start()
234
 
235
  scheduler3 = BackgroundScheduler()
236
+ scheduler3.add_job(func=backup_db_csv, trigger="interval", seconds=3666)
237
  scheduler3.start()
238
 
239
  demo.launch()