Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|