Spaces:
Sleeping
Sleeping
Kaixuanliu
commited on
Commit
•
8532438
1
Parent(s):
a274f3e
Update app.py
Browse files
app.py
CHANGED
@@ -111,12 +111,12 @@ with gr.Blocks(css=custom_css) as demo:
|
|
111 |
with gr.Column(min_width=260):
|
112 |
text_input = gr.Textbox(label="Input Prompt")
|
113 |
|
114 |
-
orig_img = gr.Image(label="Image Generated by Input Prompt",width=
|
115 |
with gr.Column():
|
116 |
start_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
117 |
with gr.Column(min_width=260):
|
118 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
119 |
-
result_img = gr.Image(label="Image Gnerated by Prompt of UnlearnDiffAtk",width=
|
120 |
|
121 |
|
122 |
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")
|
|
|
111 |
with gr.Column(min_width=260):
|
112 |
text_input = gr.Textbox(label="Input Prompt")
|
113 |
|
114 |
+
orig_img = gr.Image(label="Image Generated by Input Prompt",width=512,show_share_button=False,show_download_button=False)
|
115 |
with gr.Column():
|
116 |
start_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
117 |
with gr.Column(min_width=260):
|
118 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
119 |
+
result_img = gr.Image(label="Image Gnerated by Prompt of UnlearnDiffAtk",width=512,show_share_button=False,show_download_button=False)
|
120 |
|
121 |
|
122 |
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")
|