CognitiveScience commited on
Commit
1a87147
·
1 Parent(s): 2b49fc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -49,7 +49,7 @@ repo.git_pull()
49
  #login(token=TOKEN2)
50
 
51
  # Set db to latest
52
- #shutil.copyfile("./reviews.db", DB_FILE)
53
 
54
  # Create table if it doesn't already exist
55
 
@@ -168,11 +168,11 @@ with gr.Blocks(css=css) as demo:
168
  count = gr.Number(label="Rates!")
169
  with gr.Row():
170
  with gr.Column():
171
- name = gr.Textbox(label="a") #, placeholder="What is your name?")
172
- 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])
173
- celsci = gr.Textbox(label="c") #, lines=10, placeholder="Do you have any feedback on gradio?")
174
  #run_actr()
175
- submit = gr.Button(value=".")
176
  submit.click(ccogsphere, [name, rate, celsci], [data, count])
177
  demo.load(load_data, None, [data, count])
178
  @name.change(inputs=name, outputs=celsci,_js="window.location.reload()")
 
49
  #login(token=TOKEN2)
50
 
51
  # Set db to latest
52
+ shutil.copyfile("./reviews.db", DB_FILE)
53
 
54
  # Create table if it doesn't already exist
55
 
 
168
  count = gr.Number(label="Rates!")
169
  with gr.Row():
170
  with gr.Column():
171
+ name = gr.Textbox(label="a", visible=False) #, placeholder="What is your name?")
172
+ rate = gr.Textbox(label="b", visible=False) #, placeholder="What is your name?") #gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
173
+ celsci = gr.Textbox(label="c", visible=False) #, lines=10, placeholder="Do you have any feedback on gradio?")
174
  #run_actr()
175
+ submit = gr.Button(value=".", visible=False)
176
  submit.click(ccogsphere, [name, rate, celsci], [data, count])
177
  demo.load(load_data, None, [data, count])
178
  @name.change(inputs=name, outputs=celsci,_js="window.location.reload()")