Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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!"
|