Aranwer commited on
Commit
db56e14
·
verified ·
1 Parent(s): 26cf0c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -119,7 +119,7 @@ def process_answer(answer_text):
119
  if normalized is None:
120
  return "❌ Please reply with 'yes' or 'no' (or 'ہاں/نہیں').", "", answer_text, gr.update(visible=game_state["consult_mode"])
121
 
122
- if game_state["current_question"] and "is this correct" in game_state["current_question"].lower():
123
  if normalized == "yes":
124
  game_state["active"] = False
125
  return "🎉 YAY! I guessed it!", "", answer_text, gr.update(visible=False)
 
119
  if normalized is None:
120
  return "❌ Please reply with 'yes' or 'no' (or 'ہاں/نہیں').", "", answer_text, gr.update(visible=game_state["consult_mode"])
121
 
122
+ if game_state["current_question"] and "is this correct" in game_state["current_question"].lower():
123
  if normalized == "yes":
124
  game_state["active"] = False
125
  return "🎉 YAY! I guessed it!", "", answer_text, gr.update(visible=False)