CognitiveScience commited on
Commit
388bced
·
1 Parent(s): 55c2f3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -6
app.py CHANGED
@@ -5,8 +5,9 @@ from acogsphere import acf
5
  from bcogsphere import bcf
6
  from ecogsphere import ecf
7
 
8
-
9
  import math
 
10
 
11
  import sqlite3
12
  import huggingface_hub
@@ -106,10 +107,11 @@ def run_actr():
106
  env.run()
107
 
108
 
109
- def run_ecs():
110
- result=ecf("Dan")
111
- print ("result")
112
- print (result)
 
113
 
114
  def load_data():
115
  db = sqlite3.connect(DB_FILE)
@@ -121,10 +123,18 @@ css="footer {visibility: hidden}"
121
  # Applying style to highlight the maximum value in each row
122
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
123
  with gr.Blocks(css=css) as demo:
 
124
  with gr.Row():
125
  with gr.Column():
126
  data = gr.Dataframe() #styler)
127
  count = gr.Number(label="Rates!")
 
 
 
 
 
 
 
128
  with gr.Row():
129
  with gr.Column():
130
  name = gr.Textbox(label="a") #, placeholder="What is your name?")
@@ -175,7 +185,7 @@ def backup_db_csv():
175
  # #return reviews, total_reviews
176
 
177
  scheduler0 = BackgroundScheduler()
178
- scheduler0.add_job(func=run_ecs, trigger="interval", seconds=18)
179
  scheduler0.start()
180
 
181
  scheduler1 = BackgroundScheduler()
 
5
  from bcogsphere import bcf
6
  from ecogsphere import ecf
7
 
8
+ import pandas as pd
9
  import math
10
+ import json
11
 
12
  import sqlite3
13
  import huggingface_hub
 
107
  env.run()
108
 
109
 
110
+ def run_ecs(inp):
111
+ result=ecf(inp)
112
+ return (result)
113
+ #print ("result")
114
+ #print (result)
115
 
116
  def load_data():
117
  db = sqlite3.connect(DB_FILE)
 
123
  # Applying style to highlight the maximum value in each row
124
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
125
  with gr.Blocks(css=css) as demo:
126
+
127
  with gr.Row():
128
  with gr.Column():
129
  data = gr.Dataframe() #styler)
130
  count = gr.Number(label="Rates!")
131
+ with gr.Row():
132
+ with gr.Column():
133
+
134
+ styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
135
+ run_ecs("Dan")
136
+ data = gr.Dataframe() #styler)
137
+ count = gr.Number(label="Rates!")
138
  with gr.Row():
139
  with gr.Column():
140
  name = gr.Textbox(label="a") #, placeholder="What is your name?")
 
185
  # #return reviews, total_reviews
186
 
187
  scheduler0 = BackgroundScheduler()
188
+ scheduler0.add_job(func=run_ecs, trigger="interval", seconds=180000)
189
  scheduler0.start()
190
 
191
  scheduler1 = BackgroundScheduler()