CognitiveScience commited on
Commit
5fb295f
1 Parent(s): 0b9ee65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -105,7 +105,10 @@ 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
  submit.click(ccogsphere, [name, rate, celsci], [data, count])
110
  demo.load(load_data, None, [data, count])
111
  @name.change(inputs=name, outputs=celsci,_js="window.location.reload()")
@@ -114,7 +117,7 @@ with gr.Blocks(css=css) as demo:
114
 
115
  def secwork(name):
116
  #if name=="abc":
117
- run_code()
118
  #load_data()
119
  #return "Hello " + name + "!"
120
 
 
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
+ submit2 = gr.Button(value="Run Code")
109
+
110
+ submit2.click(run_code, "text", "text")
111
+
112
  submit.click(ccogsphere, [name, rate, celsci], [data, count])
113
  demo.load(load_data, None, [data, count])
114
  @name.change(inputs=name, outputs=celsci,_js="window.location.reload()")
 
117
 
118
  def secwork(name):
119
  #if name=="abc":
120
+ #run_code()
121
  #load_data()
122
  #return "Hello " + name + "!"
123