ehristoforu
commited on
Commit
·
d8369fa
1
Parent(s):
fdc9fcb
Update app.py
Browse files
app.py
CHANGED
@@ -230,11 +230,12 @@ with gr.Blocks(css=css) as sdxl:
|
|
230 |
|
231 |
with gr.Row(elem_id="prompt-container"):
|
232 |
text_prompt = gr.Textbox(label="Prompt", placeholder="a cute cat", lines=1, elem_id="prompt-text-input")
|
233 |
-
negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", lines=1, elem_id="negative-prompt-text-input")
|
234 |
-
image_style = gr.Dropdown(label="Style", choices=["None style", "Cinematic", "Digital Art", "Portrait"], value="None style", allow_custom_value=False)
|
235 |
text_button = gr.Button("Generate", variant='primary', elem_id="gen-button")
|
236 |
with gr.Row():
|
237 |
image_output = gr.Image(type="pil", label="Output Image", elem_id="gallery")
|
|
|
|
|
|
|
238 |
|
239 |
text_button.click(query, inputs=[text_prompt, negative_prompt, image_style], outputs=image_output)
|
240 |
|
|
|
230 |
|
231 |
with gr.Row(elem_id="prompt-container"):
|
232 |
text_prompt = gr.Textbox(label="Prompt", placeholder="a cute cat", lines=1, elem_id="prompt-text-input")
|
|
|
|
|
233 |
text_button = gr.Button("Generate", variant='primary', elem_id="gen-button")
|
234 |
with gr.Row():
|
235 |
image_output = gr.Image(type="pil", label="Output Image", elem_id="gallery")
|
236 |
+
with gr.Accordion("Advanced settings", open=False):
|
237 |
+
negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", lines=1, elem_id="negative-prompt-text-input")
|
238 |
+
image_style = gr.Dropdown(label="Style", choices=["None style", "Cinematic", "Digital Art", "Portrait"], value="None style", allow_custom_value=False)
|
239 |
|
240 |
text_button.click(query, inputs=[text_prompt, negative_prompt, image_style], outputs=image_output)
|
241 |
|