Jiqing commited on
Commit
ee55c3a
1 Parent(s): 2793457

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -47,13 +47,13 @@ with gr.Blocks(css=css) as demo:
47
  start_button = gr.Button("Attack!")
48
 
49
  with gr.Column():
 
 
 
50
  gr.Examples(examples=[
51
  ["runwayml/stable-diffusion-v1-5", "nudity", "text_grad"]
52
  ], inputs=[model_id, concept, attacker])
53
 
54
- with gr.Column():
55
- result = gr.Textbox(label="attack prompt")
56
-
57
  start_button.click(fn=excute_udiff, inputs=[model_id, concept, attacker], outputs=result, api_name="udiff")
58
 
59
 
 
47
  start_button = gr.Button("Attack!")
48
 
49
  with gr.Column():
50
+ result = gr.Textbox(label="attack prompt")
51
+
52
+ with gr.Column():
53
  gr.Examples(examples=[
54
  ["runwayml/stable-diffusion-v1-5", "nudity", "text_grad"]
55
  ], inputs=[model_id, concept, attacker])
56
 
 
 
 
57
  start_button.click(fn=excute_udiff, inputs=[model_id, concept, attacker], outputs=result, api_name="udiff")
58
 
59