CognitiveScience commited on
Commit
50cab25
·
1 Parent(s): 9a2db7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -112,6 +112,8 @@ def run_ecs(inp):
112
  #db = sqlite3.connect(DB_FILE)
113
  try:
114
  result=ecf(inp)
 
 
115
 
116
  #db.execute("SELECT * FROM reviews").fetchall()
117
  #reviews = pd.DataFrame(reviews, columns=["id", "date_created", "name", "rate", "celsci"])
@@ -119,7 +121,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():
 
112
  #db = sqlite3.connect(DB_FILE)
113
  try:
114
  result=ecf(inp)
115
+ response = pd.DataFrame.from_dict(result["videos"][0])
116
+
117
 
118
  #db.execute("SELECT * FROM reviews").fetchall()
119
  #reviews = pd.DataFrame(reviews, columns=["id", "date_created", "name", "rate", "celsci"])
 
121
  print(result)
122
  except sqlite3.OperationalError:
123
  print ("db error")
124
+ return response
125
 
126
 
127
  def load_data():