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