Spaces:
Runtime error
Runtime error
Commit
·
9014821
1
Parent(s):
ce8fda7
Update app.py
Browse files
app.py
CHANGED
@@ -107,19 +107,12 @@ def run_actr():
|
|
107 |
env.run()
|
108 |
|
109 |
|
110 |
-
def run_ecs(inp):
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
#db.execute("SELECT * FROM reviews").fetchall()
|
117 |
-
#reviews = pd.DataFrame(reviews, columns=["id", "date_created", "name", "rate", "celsci"])
|
118 |
-
#reviews, total_reviews = get_latest_reviews(db)
|
119 |
-
print(result)
|
120 |
-
except sqlite3.OperationalError:
|
121 |
-
print ("db error")
|
122 |
-
return result
|
123 |
|
124 |
|
125 |
def load_data():
|
@@ -145,25 +138,13 @@ css="footer {visibility: hidden}"
|
|
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 |
-
|
151 |
-
#
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
#styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
|
157 |
-
#styl = df.style.apply(highlight_cols, axis = None)
|
158 |
-
|
159 |
-
#print(result)
|
160 |
-
gr.Dataframe(df)
|
161 |
-
#df1=run_ecs("Dan")
|
162 |
-
|
163 |
-
|
164 |
-
#df1=json.loads(js1)
|
165 |
-
#data = gr.Dataframe(styler)
|
166 |
-
#count = gr.Number(label="Rates!")
|
167 |
with gr.Row():
|
168 |
with gr.Column():
|
169 |
data = gr.Dataframe() #styler)
|
|
|
107 |
env.run()
|
108 |
|
109 |
|
110 |
+
#def run_ecs(inp):
|
111 |
+
# try:
|
112 |
+
# result=ecf(inp)
|
113 |
+
# except sqlite3.OperationalError:
|
114 |
+
# print ("db error")
|
115 |
+
# return result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
|
118 |
def load_data():
|
|
|
138 |
with gr.Blocks() as demo:
|
139 |
with gr.Row():
|
140 |
with gr.Column():
|
|
|
141 |
celscie = gr.Textbox(label="e",value="robert+west") #, placeholder="What is your name?")
|
142 |
+
|
143 |
+
#result=run_ecs(celscie)
|
144 |
+
#df = pd.DataFrame.from_dict(result["videos"])
|
145 |
+
|
146 |
+
#gr.Dataframe(df)
|
147 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
with gr.Row():
|
149 |
with gr.Column():
|
150 |
data = gr.Dataframe() #styler)
|