Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -154,25 +154,30 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
154 |
with gr.Row():
|
155 |
with gr.Accordion("🫘Seed", open=False):
|
156 |
seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
|
163 |
with gr.Group():
|
164 |
with gr.Row():
|
165 |
image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
with gr.Row():
|
167 |
clear_results = gr.Button(value="Clear Image", variant="primary", elem_id="clear_button")
|
168 |
clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
|
169 |
-
|
170 |
-
|
171 |
-
examples = examples,
|
172 |
-
inputs = [text_prompt],
|
173 |
-
)
|
174 |
-
|
175 |
-
text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
|
176 |
|
177 |
with gr.Tab("Flip Image"):
|
178 |
with gr.Row():
|
|
|
154 |
with gr.Row():
|
155 |
with gr.Accordion("🫘Seed", open=False):
|
156 |
seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
|
157 |
+
|
158 |
+
with gr.Row():
|
159 |
+
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
160 |
+
clear_prompt =gr.Button("Clear Prompt",variant="primary", elem_id="clear_button")
|
161 |
+
clear_prompt.click(lambda: (None), None, [text_prompt], queue=False, show_api=False)
|
162 |
|
163 |
with gr.Group():
|
164 |
with gr.Row():
|
165 |
image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
|
166 |
+
|
167 |
+
|
168 |
+
with gr.Group():
|
169 |
+
with gr.Row():
|
170 |
+
gr.Examples(
|
171 |
+
examples = examples,
|
172 |
+
inputs = [text_prompt],
|
173 |
+
)
|
174 |
+
|
175 |
+
with gr.Group():
|
176 |
with gr.Row():
|
177 |
clear_results = gr.Button(value="Clear Image", variant="primary", elem_id="clear_button")
|
178 |
clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
|
179 |
+
|
180 |
+
text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
with gr.Tab("Flip Image"):
|
183 |
with gr.Row():
|