Update app.py
Browse files
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 |
-
|
| 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)
|