gouravgujariya commited on
Commit
98da687
β€’
1 Parent(s): 614d793

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- return f"❌ Incorrect! Your current points: {points}. Try again: {current_emoji}"
 
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: