Spaces:
Sleeping
Sleeping
[Update]Add image width
Browse files
app.py
CHANGED
|
@@ -81,16 +81,12 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 81 |
with gr.Row() as attack:
|
| 82 |
with gr.Column(min_width=260):
|
| 83 |
text_input = gr.Textbox(label="Input Prompt")
|
| 84 |
-
img1 = gr.Image("images/cheetah.jpg",label="Image Generated by Input Prompt",
|
| 85 |
-
show_share_button=False,
|
| 86 |
-
show_download_button=False)
|
| 87 |
with gr.Column():
|
| 88 |
start_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
| 89 |
with gr.Column(min_width=260):
|
| 90 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
| 91 |
-
|
| 92 |
-
show_share_button=False,
|
| 93 |
-
show_download_button=False)
|
| 94 |
|
| 95 |
# with gr.Column():
|
| 96 |
# gr.Examples(examples=[
|
|
|
|
| 81 |
with gr.Row() as attack:
|
| 82 |
with gr.Column(min_width=260):
|
| 83 |
text_input = gr.Textbox(label="Input Prompt")
|
| 84 |
+
img1 = gr.Image("images/cheetah.jpg",label="Image Generated by Input Prompt",width=260,show_share_button=False,show_download_button=False)
|
|
|
|
|
|
|
| 85 |
with gr.Column():
|
| 86 |
start_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
| 87 |
with gr.Column(min_width=260):
|
| 88 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
| 89 |
+
img2 = gr.Image("images/cheetah.jpg",label="Image Gnerated by Prompt of UnlearnDiffAtk",width=260,show_share_button=False,show_download_button=False)
|
|
|
|
|
|
|
| 90 |
|
| 91 |
# with gr.Column():
|
| 92 |
# gr.Examples(examples=[
|