Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ with gr.Blocks() as interface:
|
|
80 |
gr.Markdown("### How likely are you to recommend this tool to a colleague or peer?")
|
81 |
nps_slider = gr.Slider(minimum=0, maximum=10, step=1, label="Select score: 0-10 (0-6: not likely or low; 7-8: neutral; 9-10: likely or highly)")
|
82 |
nps_submit = gr.Button("Submit")
|
83 |
-
nps_output = gr.Textbox(label="",visible=True)
|
84 |
|
85 |
with gr.Group(visible=False) as results_group:
|
86 |
# with gr.Accordion("Open to See the Result", open=False) as results:
|
@@ -1124,7 +1124,7 @@ with gr.Blocks() as interface:
|
|
1124 |
inputs=[raw_text, q1, q2, contact],
|
1125 |
outputs=[feedback_status]
|
1126 |
)
|
1127 |
-
nps_submit.click(fn=submit_nps, inputs=[user_email,
|
1128 |
|
1129 |
|
1130 |
gr.HTML("""
|
|
|
80 |
gr.Markdown("### How likely are you to recommend this tool to a colleague or peer?")
|
81 |
nps_slider = gr.Slider(minimum=0, maximum=10, step=1, label="Select score: 0-10 (0-6: not likely or low; 7-8: neutral; 9-10: likely or highly)")
|
82 |
nps_submit = gr.Button("Submit")
|
83 |
+
nps_output = gr.Textbox(label="", interactive=False, visible=True) # Start empty
|
84 |
|
85 |
with gr.Group(visible=False) as results_group:
|
86 |
# with gr.Accordion("Open to See the Result", open=False) as results:
|
|
|
1124 |
inputs=[raw_text, q1, q2, contact],
|
1125 |
outputs=[feedback_status]
|
1126 |
)
|
1127 |
+
nps_submit.click(fn=submit_nps, inputs=[user_email, nps_slider], outputs=[nps_output])
|
1128 |
|
1129 |
|
1130 |
gr.HTML("""
|