Spaces:
Runtime error
Runtime error
Commit
·
a19af11
1
Parent(s):
eae1b10
Update app.py
Browse files
app.py
CHANGED
@@ -82,6 +82,8 @@ def run_actr():
|
|
82 |
#code4="log_everything(subway)"]
|
83 |
from dcogsphere import RockPaperScissors
|
84 |
from dcogsphere import ProceduralPlayer
|
|
|
|
|
85 |
env=RockPaperScissors()
|
86 |
env.model1=ProceduralPlayer()
|
87 |
env.model1.choice=env.choice1
|
@@ -89,7 +91,8 @@ def run_actr():
|
|
89 |
env.model2.choice=env.choice2
|
90 |
response=env.run()
|
91 |
#print (response)
|
92 |
-
|
|
|
93 |
|
94 |
css="footer {visibility: hidden}"
|
95 |
|
@@ -106,14 +109,14 @@ with gr.Blocks(css=css) as demo:
|
|
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 |
-
|
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 |
submit.click(ccogsphere, [name, rate, celsci], [data, count])
|
118 |
demo.load(load_data, None, [data, count])
|
119 |
#@name.change(inputs=name, outputs=celsci,_js="window.location.reload()")
|
|
|
82 |
#code4="log_everything(subway)"]
|
83 |
from dcogsphere import RockPaperScissors
|
84 |
from dcogsphere import ProceduralPlayer
|
85 |
+
from dcogsphere import logy
|
86 |
+
|
87 |
env=RockPaperScissors()
|
88 |
env.model1=ProceduralPlayer()
|
89 |
env.model1.choice=env.choice1
|
|
|
91 |
env.model2.choice=env.choice2
|
92 |
response=env.run()
|
93 |
#print (response)
|
94 |
+
resu=logy()
|
95 |
+
return resu
|
96 |
|
97 |
css="footer {visibility: hidden}"
|
98 |
|
|
|
109 |
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])
|
110 |
celsci = gr.Textbox(label="c") #, lines=10, placeholder="Do you have any feedback on gradio?")
|
111 |
submit = gr.Button(value=".")
|
112 |
+
#submit2 = gr.Button(value="Run Code")
|
113 |
+
name=run_actr()
|
114 |
#submit.click(run_actr)
|
115 |
#if (celsci=="Celscis List"):
|
116 |
# submit.click(ccogsphere, [name, rate, celsci], [data, count])
|
117 |
#else:
|
118 |
# submit.click(ccogsphere, [name, rate, celsci], [data, count])
|
119 |
+
#name=logy()
|
120 |
submit.click(ccogsphere, [name, rate, celsci], [data, count])
|
121 |
demo.load(load_data, None, [data, count])
|
122 |
#@name.change(inputs=name, outputs=celsci,_js="window.location.reload()")
|