VyLala commited on
Commit
06539d3
·
verified ·
1 Parent(s): 5896a33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -330,7 +330,7 @@ with gr.Blocks() as interface:
330
  # "\n".join(log_lines)
331
  # )
332
  def submit_nps(email,nps_score):
333
- if not nps_score.strip():
334
  return "❌ Please select a score before submitting."
335
  log_submission_to_gsheet(email, [], nps_score)
336
  return "✅ Thanks for submitting your feedback!"
 
330
  # "\n".join(log_lines)
331
  # )
332
  def submit_nps(email,nps_score):
333
+ if nps_score is None:
334
  return "❌ Please select a score before submitting."
335
  log_submission_to_gsheet(email, [], nps_score)
336
  return "✅ Thanks for submitting your feedback!"