Spaces:
Sleeping
Sleeping
[Update]Change width from 512 to 256
#1
by
xinchen9
- opened
app.py
CHANGED
@@ -110,15 +110,15 @@ with gr.Blocks(css=custom_css) as demo:
|
|
110 |
step=1, label="Attack Steps", info="Choose between 0 and 100",
|
111 |
interactive=True,)
|
112 |
with gr.Row() as attack:
|
113 |
-
with gr.Column(min_width=
|
114 |
text_input = gr.Textbox(label="Input Prompt")
|
115 |
|
116 |
-
orig_img = gr.Image(label="Image Generated by Input Prompt",width=
|
117 |
with gr.Column():
|
118 |
start_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
119 |
-
with gr.Column(min_width=
|
120 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
121 |
-
result_img = gr.Image(label="Image Gnerated by Prompt of UnlearnDiffAtk",width=
|
122 |
|
123 |
|
124 |
start_button.click(fn=excute_udiff, inputs=[drop_model, drop, shown_columns_step, atk_idx], outputs=[text_input, text_ouput, orig_img, result_img], api_name="udiff")
|
|
|
110 |
step=1, label="Attack Steps", info="Choose between 0 and 100",
|
111 |
interactive=True,)
|
112 |
with gr.Row() as attack:
|
113 |
+
with gr.Column(min_width=256):
|
114 |
text_input = gr.Textbox(label="Input Prompt")
|
115 |
|
116 |
+
orig_img = gr.Image(label="Image Generated by Input Prompt",width=256,show_share_button=False,show_download_button=False)
|
117 |
with gr.Column():
|
118 |
start_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
119 |
+
with gr.Column(min_width=256):
|
120 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
121 |
+
result_img = gr.Image(label="Image Gnerated by Prompt of UnlearnDiffAtk",width=256,show_share_button=False,show_download_button=False)
|
122 |
|
123 |
|
124 |
start_button.click(fn=excute_udiff, inputs=[drop_model, drop, shown_columns_step, atk_idx], outputs=[text_input, text_ouput, orig_img, result_img], api_name="udiff")
|