Spaces:
Runtime error
Runtime error
Commit
·
fdbccc4
1
Parent(s):
d90e78b
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,6 +88,7 @@ def run_actr():
|
|
| 88 |
env.model2=ProceduralPlayer()
|
| 89 |
env.model2.choice=env.choice2
|
| 90 |
response=env.run()
|
|
|
|
| 91 |
return response
|
| 92 |
|
| 93 |
css="footer {visibility: hidden}"
|
|
@@ -105,12 +106,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 105 |
rate = gr.Textbox(label="b") #, placeholder="What is your name?") #gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
|
| 106 |
celsci = gr.Textbox(label="c") #, lines=10, placeholder="Do you have any feedback on gradio?")
|
| 107 |
submit = gr.Button(value=".")
|
| 108 |
-
|
| 109 |
-
score1=run_actr()
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
|
|
|
|
|
|
| 114 |
demo.load(load_data, None, [data, count])
|
| 115 |
#@name.change(inputs=name, outputs=celsci,_js="window.location.reload()")
|
| 116 |
#@rate.change(inputs=rate, outputs=name,_js="window.location.reload()")
|
|
|
|
| 88 |
env.model2=ProceduralPlayer()
|
| 89 |
env.model2.choice=env.choice2
|
| 90 |
response=env.run()
|
| 91 |
+
#print (response)
|
| 92 |
return response
|
| 93 |
|
| 94 |
css="footer {visibility: hidden}"
|
|
|
|
| 106 |
rate = gr.Textbox(label="b") #, placeholder="What is your name?") #gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
|
| 107 |
celsci = gr.Textbox(label="c") #, lines=10, placeholder="Do you have any feedback on gradio?")
|
| 108 |
submit = gr.Button(value=".")
|
| 109 |
+
submit2 = gr.Button(value="Run Code")
|
| 110 |
+
#score1=run_actr()
|
| 111 |
+
submit.click(run_actr)
|
| 112 |
+
#if (celsci=="Celscis List"):
|
| 113 |
+
# submit.click(ccogsphere, [name, rate, celsci], [data, count])
|
| 114 |
+
#else:
|
| 115 |
+
# submit.click(ccogsphere, [name, rate, celsci], [data, count])
|
| 116 |
+
|
| 117 |
demo.load(load_data, None, [data, count])
|
| 118 |
#@name.change(inputs=name, outputs=celsci,_js="window.location.reload()")
|
| 119 |
#@rate.change(inputs=rate, outputs=name,_js="window.location.reload()")
|