DigiP-AI commited on
Commit
cd09555
Β·
verified Β·
1 Parent(s): d13e362

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 large turbo πŸ‡¬πŸ‡§</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,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: gr.Textbox(value=""), None, output_text)
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