Spaces:
Runtime error
Runtime error
Commit
·
5f7680f
1
Parent(s):
ce54631
Update app.py
Browse files
app.py
CHANGED
|
@@ -165,22 +165,11 @@ with gr.Blocks() as demo:
|
|
| 165 |
|
| 166 |
gr.Dataframe(df)
|
| 167 |
|
| 168 |
-
name2 = gr.Textbox(label="a2") #, placeholder="What is your name?")
|
| 169 |
-
rate2 = gr.Textbox(label="b2") #, placeholder="What is your name?") #gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
|
| 170 |
celsci2 = gr.Textbox(label="c2") #, lines=10, placeholder="Do you have any feedback on gradio?")
|
| 171 |
#run_actr()
|
| 172 |
submit2 = gr.Button(value=".")
|
| 173 |
-
submit2.click(ccogsphere2, [
|
| 174 |
demo.load(load_data2, None, [data2, count2])
|
| 175 |
-
@name2.change(inputs=name2, outputs=celsci2,_js="window.location.reload()")
|
| 176 |
-
@rate2.change(inputs=rate2, outputs=name2,_js="window.location.reload()")
|
| 177 |
-
@celsci2.change(inputs=celsci2, outputs=rate2,_js="window.location.reload()")
|
| 178 |
-
|
| 179 |
-
def secwork2(name2):
|
| 180 |
-
#if name=="abc":
|
| 181 |
-
#run_code()
|
| 182 |
-
load_data2()
|
| 183 |
-
#return "Hello " + name + "!"
|
| 184 |
|
| 185 |
with gr.Row():
|
| 186 |
with gr.Column():
|
|
|
|
| 165 |
|
| 166 |
gr.Dataframe(df)
|
| 167 |
|
|
|
|
|
|
|
| 168 |
celsci2 = gr.Textbox(label="c2") #, lines=10, placeholder="Do you have any feedback on gradio?")
|
| 169 |
#run_actr()
|
| 170 |
submit2 = gr.Button(value=".")
|
| 171 |
+
submit2.click(ccogsphere2, [celsci2], [data2, count2])
|
| 172 |
demo.load(load_data2, None, [data2, count2])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
|
| 174 |
with gr.Row():
|
| 175 |
with gr.Column():
|