CognitiveScience commited on
Commit
bb4e5fc
·
1 Parent(s): 4d4b545

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -149,10 +149,10 @@ with gr.Blocks() as demo:
149
  df = pd.DataFrame.from_dict(result["videos"][0])
150
  #df=pd.DataFrame(result)
151
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
152
- styl = df.style.apply(highlight_cols, axis = None)
153
 
154
  #print(result)
155
- gr.Dataframe(styl, interactive=False)
156
  #df1=run_ecs("Dan")
157
 
158
 
@@ -216,16 +216,16 @@ def backup_db_csv():
216
  #scheduler0.add_job(func=run_ecs, trigger="interval", seconds=180000)
217
  #scheduler0.start()
218
 
219
- scheduler1 = BackgroundScheduler()
220
- scheduler1.add_job(func=run_actr, trigger="interval", seconds=3600)
221
- scheduler1.start()
222
 
223
- scheduler2 = BackgroundScheduler()
224
- scheduler2.add_job(func=backup_db, trigger="interval", seconds=3633000)
225
- scheduler2.start()
226
 
227
- scheduler3 = BackgroundScheduler()
228
- scheduler3.add_job(func=backup_db_csv, trigger="interval", seconds=3666000)
229
- scheduler3.start()
230
 
231
  demo.launch()
 
149
  df = pd.DataFrame.from_dict(result["videos"][0])
150
  #df=pd.DataFrame(result)
151
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
152
+ #styl = df.style.apply(highlight_cols, axis = None)
153
 
154
  #print(result)
155
+ gr.Dataframe(df)
156
  #df1=run_ecs("Dan")
157
 
158
 
 
216
  #scheduler0.add_job(func=run_ecs, trigger="interval", seconds=180000)
217
  #scheduler0.start()
218
 
219
+ #scheduler1 = BackgroundScheduler()
220
+ #scheduler1.add_job(func=run_actr, trigger="interval", seconds=3600)
221
+ #scheduler1.start()
222
 
223
+ #scheduler2 = BackgroundScheduler()
224
+ #scheduler2.add_job(func=backup_db, trigger="interval", seconds=3633000)
225
+ #scheduler2.start()
226
 
227
+ #scheduler3 = BackgroundScheduler()
228
+ #scheduler3.add_job(func=backup_db_csv, trigger="interval", seconds=3666000)
229
+ #scheduler3.start()
230
 
231
  demo.launch()