Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -130,11 +130,11 @@ with gr.Blocks(css=custom_css) as demo:
|
|
130 |
start_button = gr.Button("Attack prepare!",size='lg')
|
131 |
text_input = gr.Textbox(label="Input Prompt")
|
132 |
|
133 |
-
orig_img = gr.Image(label="Image
|
134 |
with gr.Column():
|
135 |
attack_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
136 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
137 |
-
result_img = gr.Image(label="Image Gnerated by
|
138 |
|
139 |
start_button.click(fn=execute_prepare, inputs=[drop_model, drop, shown_columns_step, atk_idx], outputs=[text_input, orig_img], api_name="prepare")
|
140 |
attack_button.click(fn=execute_udiff, inputs=[drop_model, drop, shown_columns_step, atk_idx], outputs=[text_ouput, result_img], api_name="udiff")
|
|
|
130 |
start_button = gr.Button("Attack prepare!",size='lg')
|
131 |
text_input = gr.Textbox(label="Input Prompt")
|
132 |
|
133 |
+
orig_img = gr.Image(label="Image Gnerated by Unlearned DM using input prompt",width=512,show_share_button=False,show_download_button=False)
|
134 |
with gr.Column():
|
135 |
attack_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
136 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
137 |
+
result_img = gr.Image(label="Image Gnerated by Unlearned DM using adversarial prompt",width=512,show_share_button=False,show_download_button=False)
|
138 |
|
139 |
start_button.click(fn=execute_prepare, inputs=[drop_model, drop, shown_columns_step, atk_idx], outputs=[text_input, orig_img], api_name="prepare")
|
140 |
attack_button.click(fn=execute_udiff, inputs=[drop_model, drop, shown_columns_step, atk_idx], outputs=[text_ouput, result_img], api_name="udiff")
|