Spaces:
Runtime error
Runtime error
gouravgujariya
commited on
Commit
β’
98da687
1
Parent(s):
614d793
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,8 @@ def emoji_game(user_input=""):
|
|
73 |
if points <= -10:
|
74 |
return f"β Incorrect! You've dropped to -10 points. Game over! π’"
|
75 |
else:
|
76 |
-
|
|
|
77 |
|
78 |
# Create a Gradio interface for the game with horizontal layout and buttons
|
79 |
with gr.Blocks() as interface:
|
|
|
73 |
if points <= -10:
|
74 |
return f"β Incorrect! You've dropped to -10 points. Game over! π’"
|
75 |
else:
|
76 |
+
# Show the correct answer after a wrong guess
|
77 |
+
return f"β Incorrect! The correct answer was: {current_emoji}. Your current points: {points}. Try again: {current_emoji}"
|
78 |
|
79 |
# Create a Gradio interface for the game with horizontal layout and buttons
|
80 |
with gr.Blocks() as interface:
|