Update app.py
Browse files
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 |
-
|
| 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()
|