Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def start_new_game():
|
|
76 |
|
77 |
# Gradio UI
|
78 |
with gr.Blocks() as app:
|
79 |
-
current_level = 0
|
80 |
with gr.Row():
|
81 |
gr.Markdown("## π New Year 2025 Jailbreak Game π")
|
82 |
with gr.Row():
|
@@ -88,7 +88,6 @@ with gr.Blocks() as app:
|
|
88 |
user_prompt = gr.Textbox(label="Your Prompt", placeholder="Enter your prompt here...")
|
89 |
game_output = gr.Textbox(label="AI Response", interactive=False)
|
90 |
attempts = gr.Number(value=0, interactive=False, label="Attempts")
|
91 |
-
current_level = gr.State(value=0) # Track the current level
|
92 |
|
93 |
with gr.Row():
|
94 |
submit_button = gr.Button("Submit")
|
|
|
76 |
|
77 |
# Gradio UI
|
78 |
with gr.Blocks() as app:
|
79 |
+
current_level = gr.State(value=0) # Track the current level
|
80 |
with gr.Row():
|
81 |
gr.Markdown("## π New Year 2025 Jailbreak Game π")
|
82 |
with gr.Row():
|
|
|
88 |
user_prompt = gr.Textbox(label="Your Prompt", placeholder="Enter your prompt here...")
|
89 |
game_output = gr.Textbox(label="AI Response", interactive=False)
|
90 |
attempts = gr.Number(value=0, interactive=False, label="Attempts")
|
|
|
91 |
|
92 |
with gr.Row():
|
93 |
submit_button = gr.Button("Submit")
|