VyLala commited on
Commit
054e80c
·
verified ·
1 Parent(s): 4ee7ac8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -76,7 +76,7 @@ with gr.Blocks() as interface:
76
  nps_question = gr.Markdown("### How likely are you to recommend this tool to a colleague or peer (0 = Not at all, 10 = Definitely)?")
77
  nps_slider = gr.Slider(minimum=0, maximum=10, step=1, label="Your NPS Score (0-10)")
78
  nps_button = gr.Button("Submit")
79
- nps_output = gr.Textbox(label="Thanks for your feedback!")
80
 
81
  download_file = gr.File(label="Download File Here", visible=False, interactive=True)
82
  progress_box = gr.Textbox(label="Live Processing Log", lines=20, interactive=False)
@@ -298,8 +298,8 @@ with gr.Blocks() as interface:
298
  # )
299
  def submit_nps(email,nps_score):
300
  log_submission_to_gsheet(email,[],nps_score)
301
- #return "✅ Submitted successfully!"
302
- return nps_output
303
  def log_submission_to_gsheet(email, samples, nps_score=None):
304
  from datetime import datetime, timezone
305
  import json, os, gspread
 
76
  nps_question = gr.Markdown("### How likely are you to recommend this tool to a colleague or peer (0 = Not at all, 10 = Definitely)?")
77
  nps_slider = gr.Slider(minimum=0, maximum=10, step=1, label="Your NPS Score (0-10)")
78
  nps_button = gr.Button("Submit")
79
+ #nps_output = gr.Textbox(label="Thanks for your feedback!")
80
 
81
  download_file = gr.File(label="Download File Here", visible=False, interactive=True)
82
  progress_box = gr.Textbox(label="Live Processing Log", lines=20, interactive=False)
 
298
  # )
299
  def submit_nps(email,nps_score):
300
  log_submission_to_gsheet(email,[],nps_score)
301
+ return "✅ Submitted successfully!"
302
+ #return nps_output
303
  def log_submission_to_gsheet(email, samples, nps_score=None):
304
  from datetime import datetime, timezone
305
  import json, os, gspread