xinchen9 commited on
Commit
2847f7d
·
verified ·
1 Parent(s): c33e3a9

[Update]change width size

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -80,12 +80,12 @@ with gr.Blocks(css=custom_css) as demo:
80
  step=1, label="Attack Steps", info="Choose between 0 and 100",
81
  interactive=True,)
82
  with gr.Row() as attack:
83
- with gr.Column(min_width=260):
84
  text_input = gr.Textbox(label="Input Prompt")
85
  img1 = gr.Image("images/cheetah.jpg",label="Image")
86
- with gr.Column(min_width=60):
87
  start_button = gr.Button("UnlearnDiffAtk!")
88
- with gr.Column(min_width=260):
89
  text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
90
  img2 = gr.Image("images/cheetah.jpg",label="After Defense")
91
 
 
80
  step=1, label="Attack Steps", info="Choose between 0 and 100",
81
  interactive=True,)
82
  with gr.Row() as attack:
83
+ with gr.Column(min_width=300):
84
  text_input = gr.Textbox(label="Input Prompt")
85
  img1 = gr.Image("images/cheetah.jpg",label="Image")
86
+ with gr.Column(scale=4, min_width=40):
87
  start_button = gr.Button("UnlearnDiffAtk!")
88
+ with gr.Column(min_width=300):
89
  text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
90
  img2 = gr.Image("images/cheetah.jpg",label="After Defense")
91