Update app.py
Browse files
app.py
CHANGED
@@ -193,7 +193,7 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
193 |
with gr.Group():
|
194 |
# Image output area to display the generated image
|
195 |
with gr.Row():
|
196 |
-
image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False,
|
197 |
|
198 |
gr.Examples(
|
199 |
examples = examples,
|
@@ -205,7 +205,7 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
205 |
clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
|
206 |
|
207 |
# Bind the button to the query function with the added width and height inputs
|
208 |
-
text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
|
209 |
|
210 |
with gr.TabItem(label="Image To Prompt", visible=True):
|
211 |
with gr.Row():
|
|
|
193 |
with gr.Group():
|
194 |
# Image output area to display the generated image
|
195 |
with gr.Row():
|
196 |
+
image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
|
197 |
|
198 |
gr.Examples(
|
199 |
examples = examples,
|
|
|
205 |
clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
|
206 |
|
207 |
# Bind the button to the query function with the added width and height inputs
|
208 |
+
text_button.click(query, pbar, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
|
209 |
|
210 |
with gr.TabItem(label="Image To Prompt", visible=True):
|
211 |
with gr.Row():
|