Spaces:
Build error
Build error
[update]Change to 320
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
import os
|
|
@@ -80,12 +79,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=
|
| 84 |
text_input = gr.Textbox(label="Input Prompt")
|
| 85 |
img1 = gr.Image("images/cheetah.jpg",label="Image")
|
| 86 |
with gr.Column():
|
| 87 |
-
start_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
| 88 |
-
with gr.Column(min_width=
|
| 89 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
| 90 |
img2 = gr.Image("images/cheetah.jpg",label="After Defense")
|
| 91 |
|
|
|
|
|
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
import os
|
|
|
|
| 79 |
step=1, label="Attack Steps", info="Choose between 0 and 100",
|
| 80 |
interactive=True,)
|
| 81 |
with gr.Row() as attack:
|
| 82 |
+
with gr.Column(min_width=320):
|
| 83 |
text_input = gr.Textbox(label="Input Prompt")
|
| 84 |
img1 = gr.Image("images/cheetah.jpg",label="Image")
|
| 85 |
with gr.Column():
|
| 86 |
+
start_button = gr.Button("UnlearnDiffAtk!",size='lg',min_width=10)
|
| 87 |
+
with gr.Column(min_width=320):
|
| 88 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
| 89 |
img2 = gr.Image("images/cheetah.jpg",label="After Defense")
|
| 90 |
|