Update app.py
Browse files
app.py
CHANGED
@@ -69,14 +69,14 @@ def start_new_game():
|
|
69 |
|
70 |
# Gradio UI
|
71 |
with gr.Blocks() as app:
|
72 |
-
current_level = gr.State(value=0) # Track the current level
|
73 |
with gr.Row():
|
74 |
gr.Markdown("## π New Year 2025 Jailbreak Game π")
|
75 |
with gr.Row():
|
76 |
descripion, _0, _1 = start_new_game()
|
77 |
gr.Markdown(descripion)
|
78 |
with gr.Row():
|
79 |
-
|
80 |
|
81 |
user_prompt = gr.Textbox(label="Your Prompt", placeholder="Enter your prompt here...")
|
82 |
game_output = gr.Textbox(label="AI Response", interactive=False)
|
|
|
69 |
|
70 |
# Gradio UI
|
71 |
with gr.Blocks() as app:
|
72 |
+
#current_level = gr.State(value=0) # Track the current level
|
73 |
with gr.Row():
|
74 |
gr.Markdown("## π New Year 2025 Jailbreak Game π")
|
75 |
with gr.Row():
|
76 |
descripion, _0, _1 = start_new_game()
|
77 |
gr.Markdown(descripion)
|
78 |
with gr.Row():
|
79 |
+
current_level = gr.Number(value=0, interactive=False, label="Level") # Track the current level
|
80 |
|
81 |
user_prompt = gr.Textbox(label="Your Prompt", placeholder="Enter your prompt here...")
|
82 |
game_output = gr.Textbox(label="AI Response", interactive=False)
|