Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -227,15 +227,14 @@ with gr.Blocks(css=css) as demo:
|
|
227 |
btn_refresh.click(None, js="window.location.reload()")
|
228 |
current_model = gr.Dropdown(label="Current Model", choices=list_models, value="stabilityai/stable-diffusion-2-1")
|
229 |
|
230 |
-
with gr.Row(
|
231 |
-
|
232 |
-
text_prompt = gr.Textbox(label="Prompt", placeholder="a cute dog",
|
233 |
value = "1girl, aqua eyes, baseball cap, blonde hair, closed mouth, earrings, green background, hat, hoop earrings, jewelry, looking at viewer, shirt, short hair, simple background, solo, upper body, yellow shirt",
|
234 |
lines=2, elem_id="prompt-text-input")
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
|
240 |
with gr.Row():
|
241 |
image_output = gr.Image(type="pil", label="Output Image", elem_id="gallery")
|
|
|
227 |
btn_refresh.click(None, js="window.location.reload()")
|
228 |
current_model = gr.Dropdown(label="Current Model", choices=list_models, value="stabilityai/stable-diffusion-2-1")
|
229 |
|
230 |
+
with gr.Row("prompt-container"):
|
231 |
+
text_prompt = gr.Textbox(label="Prompt", placeholder="a cute dog",
|
|
|
232 |
value = "1girl, aqua eyes, baseball cap, blonde hair, closed mouth, earrings, green background, hat, hoop earrings, jewelry, looking at viewer, shirt, short hair, simple background, solo, upper body, yellow shirt",
|
233 |
lines=2, elem_id="prompt-text-input")
|
234 |
+
text_button = gr.Button("Manualy input Generate", variant='primary', elem_id="gen-button")
|
235 |
+
with gr.Row("prompt-container"):
|
236 |
+
select_prompt = gr.Dropdown(label="prompt selected", choices=list_prompts, value=list_prompts[1])
|
237 |
+
select_button = gr.Button("Select Prompt Generate", variant='primary', elem_id="gen-button")
|
238 |
|
239 |
with gr.Row():
|
240 |
image_output = gr.Image(type="pil", label="Output Image", elem_id="gallery")
|