VyLala commited on
Commit
26d9e98
·
verified ·
1 Parent(s): 1ed0e16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -121,7 +121,7 @@ with gr.Blocks() as interface:
121
  gr.HTML('<span id="nps-close">✕</span>') # Small top-right X
122
  gr.Markdown("### How likely are you to recommend this tool to a colleague or peer?")
123
  nps_slider = gr.Slider(minimum=0, maximum=10, step=1, label="Your NPS Score (0-10)")
124
- nps_text = gr.Textbox(label="Any feedback?", lines=3)
125
  nps_submit = gr.Button("Submit")
126
 
127
 
@@ -1162,7 +1162,7 @@ with gr.Blocks() as interface:
1162
  )
1163
 
1164
  #nps_button.click(fn=submit_nps, inputs=[user_email, nps_slider], outputs=nps_output)
1165
- nps_submit.click(fn=submit_nps, inputs=[user_email, nps_slider, nps_text], outputs=[])
1166
  #nps_close.click(fn=lambda: gr.update(visible=False), outputs=[nps_modal])
1167
 
1168
 
@@ -1250,7 +1250,7 @@ with gr.Blocks() as interface:
1250
  with gr.Tab("PRICING"):
1251
  gr.HTML(value=pricing_html)
1252
  interface.load(
1253
- _js="""
1254
  () => {
1255
  document.getElementById('nps-close').onclick = function() {
1256
  document.querySelector('#nps-overlay').style.display = 'none';
 
121
  gr.HTML('<span id="nps-close">✕</span>') # Small top-right X
122
  gr.Markdown("### How likely are you to recommend this tool to a colleague or peer?")
123
  nps_slider = gr.Slider(minimum=0, maximum=10, step=1, label="Your NPS Score (0-10)")
124
+ #nps_text = gr.Textbox(label="Any feedback?", lines=3)
125
  nps_submit = gr.Button("Submit")
126
 
127
 
 
1162
  )
1163
 
1164
  #nps_button.click(fn=submit_nps, inputs=[user_email, nps_slider], outputs=nps_output)
1165
+ nps_submit.click(fn=submit_nps, inputs=[user_email, nps_slider], outputs=[])
1166
  #nps_close.click(fn=lambda: gr.update(visible=False), outputs=[nps_modal])
1167
 
1168
 
 
1250
  with gr.Tab("PRICING"):
1251
  gr.HTML(value=pricing_html)
1252
  interface.load(
1253
+ js="""
1254
  () => {
1255
  document.getElementById('nps-close').onclick = function() {
1256
  document.querySelector('#nps-overlay').style.display = 'none';