Aswini96 commited on
Commit
671b363
·
verified ·
1 Parent(s): 1d3053d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def jailbreak_game(user_prompt, current_level, attempts):
30
  if current_level >= len(new_year_levels)+ 1:
31
  return ("Congratulations! 🎉 You have completed all levels. ", current_level, attempts)
32
 
33
- secret_word = new_year_levels[current_level]
34
  ai_response = ask_openai(user_prompt, secret_word)
35
 
36
  # Check if the secret word was revealed
 
30
  if current_level >= len(new_year_levels)+ 1:
31
  return ("Congratulations! 🎉 You have completed all levels. ", current_level, attempts)
32
 
33
+ secret_word = new_year_levels[current_level - 1]
34
  ai_response = ask_openai(user_prompt, secret_word)
35
 
36
  # Check if the secret word was revealed