rosemariafontana commited on
Commit
f4c8109
·
verified ·
1 Parent(s): 13a1013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,11 +16,12 @@ def display_survey(survey_id):
16
  with gr.Blocks() as app:
17
  with gr.Row():
18
  surveyID_input = gr.Textbox(label="Enter SurveyStack Survey ID")
 
19
 
20
  with gr.Row():
21
  survey_output = gr.HTML()
22
 
23
- surveyID_input.change(fn=display_survey, inputs=surveyID_input, outputs=survey_output)
24
 
25
 
26
  app.launch()
 
16
  with gr.Blocks() as app:
17
  with gr.Row():
18
  surveyID_input = gr.Textbox(label="Enter SurveyStack Survey ID")
19
+ submit_button = gr.Button("Load Survey")
20
 
21
  with gr.Row():
22
  survey_output = gr.HTML()
23
 
24
+ submit_button.click(fn=display_survey, inputs=surveyID_input, outputs=survey_output)
25
 
26
 
27
  app.launch()