Update app.py
Browse files
app.py
CHANGED
@@ -155,7 +155,7 @@ footer{display:none !important}
|
|
155 |
# Build the Gradio UI with Blocks
|
156 |
with gr.Blocks(theme=theme, css=css) as app:
|
157 |
# Add a title to the app
|
158 |
-
gr.HTML("<center><h1>π¨ Stable Diffusion 3.5
|
159 |
with gr.Tabs() as tabs:
|
160 |
with gr.TabItem(label="Image To Prompt", visible=True, id=1):
|
161 |
with gr.Row():
|
@@ -165,7 +165,7 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
165 |
with gr.Column():
|
166 |
output_text = gr.Textbox(label="Flux Prompt", show_copy_button = True)
|
167 |
clr_button =gr.Button("Clear",variant="primary", elem_id="clear_button")
|
168 |
-
clr_button.click(lambda:
|
169 |
|
170 |
submit_btn.click(feifeichat, [input_img], [output_text])
|
171 |
|
|
|
155 |
# Build the Gradio UI with Blocks
|
156 |
with gr.Blocks(theme=theme, css=css) as app:
|
157 |
# Add a title to the app
|
158 |
+
gr.HTML("<center><h1>π¨ Stable Diffusion 3.5 Large T0urbo + π¬π§</h1></center>")
|
159 |
with gr.Tabs() as tabs:
|
160 |
with gr.TabItem(label="Image To Prompt", visible=True, id=1):
|
161 |
with gr.Row():
|
|
|
165 |
with gr.Column():
|
166 |
output_text = gr.Textbox(label="Flux Prompt", show_copy_button = True)
|
167 |
clr_button =gr.Button("Clear",variant="primary", elem_id="clear_button")
|
168 |
+
clr_button.click(lambda: (None, None), None, [input_img, output_text], queue=False, show_api=False)
|
169 |
|
170 |
submit_btn.click(feifeichat, [input_img], [output_text])
|
171 |
|