Aswini96 commited on
Commit
3fedb4f
Β·
verified Β·
1 Parent(s): 8e31ba1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- current_level_display = gr.Textbox(value=(current_level.value+1), label="Current Level", interactive=False)
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)