Spaces:
Sleeping
Sleeping
Kaixuanliu
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -105,12 +105,12 @@ with gr.Blocks(css=custom_css) as demo:
|
|
105 |
with gr.Column(min_width=260):
|
106 |
text_input = gr.Textbox(label="Input Prompt")
|
107 |
|
108 |
-
|
109 |
with gr.Column():
|
110 |
start_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
111 |
with gr.Column(min_width=260):
|
112 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
113 |
-
|
114 |
|
115 |
|
116 |
start_button.click(fn=excute_udiff, inputs=[drop_model, drop, shown_columns_step], outputs=[text_input, text_ouput, orig_img, result_img], api_name="udiff")
|
|
|
105 |
with gr.Column(min_width=260):
|
106 |
text_input = gr.Textbox(label="Input Prompt")
|
107 |
|
108 |
+
orig_img = gr.Image(label="Image Generated by Input Prompt",width=260,show_share_button=False,show_download_button=False)
|
109 |
with gr.Column():
|
110 |
start_button = gr.Button("UnlearnDiffAtk!",size='lg')
|
111 |
with gr.Column(min_width=260):
|
112 |
text_ouput = gr.Textbox(label="Prompt Genetated by UnlearnDiffAtk")
|
113 |
+
result_img = gr.Image(abel="Image Gnerated by Prompt of UnlearnDiffAtk",width=260,show_share_button=False,show_download_button=False)
|
114 |
|
115 |
|
116 |
start_button.click(fn=excute_udiff, inputs=[drop_model, drop, shown_columns_step], outputs=[text_input, text_ouput, orig_img, result_img], api_name="udiff")
|