xinchen9 commited on
Commit
fa074eb
1 Parent(s): f6a1585

[Update]Add slider

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -31,7 +31,12 @@ with gr.Blocks() as demo:
31
  with gr.Row():
32
  # gr.Markdown("Please upload your model id.")
33
  diffusion_model_id = gr.Textbox(label='diffusion_model_id')
34
- concept = gr.Textbox(label='concept')
 
 
 
 
 
35
  attacker = gr.Textbox(label='attacker')
36
 
37
  start_button = gr.Button("Attack!")
 
31
  with gr.Row():
32
  # gr.Markdown("Please upload your model id.")
33
  diffusion_model_id = gr.Textbox(label='diffusion_model_id')
34
+ shown_columns_4 = gr.Slider(
35
+ 1, 100, value=40,
36
+ step=1, label="Attacking Steps", info="Choose between 1 and 100",
37
+ interactive=True,)
38
+
39
+ # concept = gr.Textbox(label='concept')
40
  attacker = gr.Textbox(label='attacker')
41
 
42
  start_button = gr.Button("Attack!")