DigiP-AI commited on
Commit
5b03cc9
·
verified ·
1 Parent(s): 634bf55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -186,6 +186,7 @@ with gr.Blocks(theme=theme, css=css) as app:
186
  with gr.Group():
187
  # Image output area to display the generated image
188
  with gr.Row():
 
189
  image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
190
 
191
  gr.Examples(
@@ -200,7 +201,7 @@ with gr.Blocks(theme=theme, css=css) as app:
200
  # Bind the button to the query function with the added width and height inputs
201
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
202
 
203
- with gr.TabItem(label="Image To Prompt"):
204
  with gr.Row():
205
  with gr.Column():
206
  input_img = gr.Image(label="Input Picture",height=320,type="filepath")
 
186
  with gr.Group():
187
  # Image output area to display the generated image
188
  with gr.Row():
189
+ app.add_component(“progress_bar”, name=”Progress”)
190
  image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
191
 
192
  gr.Examples(
 
201
  # Bind the button to the query function with the added width and height inputs
202
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
203
 
204
+ with gr.TabItem(label="Image To Prompt", visible=True):
205
  with gr.Row():
206
  with gr.Column():
207
  input_img = gr.Image(label="Input Picture",height=320,type="filepath")