Aswini96 commited on
Commit
ffdcd78
Β·
verified Β·
1 Parent(s): 94e3947

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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")