Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
112 |
with gr.Column(elem_id="app-container"):
|
113 |
with gr.Row():
|
114 |
with gr.Column(elem_id="prompt-container"):
|
115 |
-
with gr.
|
116 |
with gr.Row():
|
117 |
text_prompt = gr.Textbox(label="Image Prompt", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
|
118 |
with gr.Row():
|
@@ -159,17 +159,18 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
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.
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
|
|
173 |
|
174 |
text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
|
175 |
|
|
|
112 |
with gr.Column(elem_id="app-container"):
|
113 |
with gr.Row():
|
114 |
with gr.Column(elem_id="prompt-container"):
|
115 |
+
with gr.Group:
|
116 |
with gr.Row():
|
117 |
text_prompt = gr.Textbox(label="Image Prompt", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
|
118 |
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 |
+
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 |
+
gr.Examples(
|
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 |
|