CognitiveScience commited on
Commit
2326dd2
·
1 Parent(s): 65fbc45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -119,7 +119,7 @@ def run_ecs(inp):
119
  print(result)
120
  except sqlite3.OperationalError:
121
  print ("db error")
122
- return (result)
123
 
124
 
125
  def load_data():
@@ -145,8 +145,12 @@ css="footer {visibility: hidden}"
145
  with gr.Blocks() as demo:
146
  with gr.Row():
147
  with gr.Column():
148
- result=run_ecs("Dan")
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)
 
119
  print(result)
120
  except sqlite3.OperationalError:
121
  print ("db error")
122
+ return result
123
 
124
 
125
  def load_data():
 
145
  with gr.Blocks() as demo:
146
  with gr.Row():
147
  with gr.Column():
148
+ #result=run_ecs("Dan")
149
+ celscie = gr.Textbox(label="e",value="robert+west") #, placeholder="What is your name?")
150
+ #submite = gr.Button(value="E")
151
+ #submite.click(ecs, [name, rate, celsci], [data, count])
152
+ df=run_ecs(celscie)
153
+
154
  #df=pd.DataFrame(result)
155
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
156
  #styl = df.style.apply(highlight_cols, axis = None)