CognitiveScience commited on
Commit
ea94c7e
1 Parent(s): 14982f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -107,11 +107,12 @@ def load_data():
107
  return reviews, total_reviews
108
 
109
  css="footer {visibility: hidden}"
110
-
 
111
  with gr.Blocks(css=css) as demo:
112
  with gr.Row():
113
  with gr.Column():
114
- data = gr.Dataframe()
115
  count = gr.Number(label="Rates!")
116
  with gr.Row():
117
  with gr.Column():
@@ -163,7 +164,7 @@ def backup_db_csv():
163
  # #return reviews, total_reviews
164
 
165
  scheduler2 = BackgroundScheduler()
166
- scheduler2.add_job(func=run_actr, trigger="interval", seconds=3600000)
167
  scheduler2.start()
168
 
169
  scheduler2 = BackgroundScheduler()
 
107
  return reviews, total_reviews
108
 
109
  css="footer {visibility: hidden}"
110
+ # Applying style to highlight the maximum value in each row
111
+ styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
112
  with gr.Blocks(css=css) as demo:
113
  with gr.Row():
114
  with gr.Column():
115
+ data = gr.Dataframe(styler)
116
  count = gr.Number(label="Rates!")
117
  with gr.Row():
118
  with gr.Column():
 
164
  # #return reviews, total_reviews
165
 
166
  scheduler2 = BackgroundScheduler()
167
+ scheduler2.add_job(func=run_actr, trigger="interval", seconds=36)
168
  scheduler2.start()
169
 
170
  scheduler2 = BackgroundScheduler()