Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -214,10 +214,12 @@ with gr.Blocks(css=css) as demo:
|
|
214 |
with gr.Column():
|
215 |
btn_refresh = gr.Button(value="Click Refresh to get current deployed models")
|
216 |
btn_refresh.click(None, js="window.location.reload()")
|
217 |
-
current_model = gr.Dropdown(label="Current Model", choices=list_models, value=
|
218 |
|
219 |
with gr.Row(elem_id="prompt-container"):
|
220 |
-
text_prompt = gr.Textbox(label="Prompt", placeholder="a cute dog",
|
|
|
|
|
221 |
text_button = gr.Button("Generate", variant='primary', elem_id="gen-button")
|
222 |
|
223 |
with gr.Row():
|
@@ -225,7 +227,7 @@ with gr.Blocks(css=css) as demo:
|
|
225 |
|
226 |
with gr.Accordion("Advanced settings", open=False):
|
227 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", lines=1, elem_id="negative-prompt-text-input")
|
228 |
-
image_style = gr.Dropdown(label="Style", choices=["None style", "Cinematic", "Digital Art", "Portrait"], value="
|
229 |
|
230 |
with gr.Row():
|
231 |
gr.Examples(
|
|
|
214 |
with gr.Column():
|
215 |
btn_refresh = gr.Button(value="Click Refresh to get current deployed models")
|
216 |
btn_refresh.click(None, js="window.location.reload()")
|
217 |
+
current_model = gr.Dropdown(label="Current Model", choices=list_models, value="stabilityai/stable-diffusion-2-1")
|
218 |
|
219 |
with gr.Row(elem_id="prompt-container"):
|
220 |
+
text_prompt = gr.Textbox(label="Prompt", placeholder="a cute dog",
|
221 |
+
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",
|
222 |
+
lines=2, elem_id="prompt-text-input")
|
223 |
text_button = gr.Button("Generate", variant='primary', elem_id="gen-button")
|
224 |
|
225 |
with gr.Row():
|
|
|
227 |
|
228 |
with gr.Accordion("Advanced settings", open=False):
|
229 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", lines=1, elem_id="negative-prompt-text-input")
|
230 |
+
image_style = gr.Dropdown(label="Style", choices=["None style", "Cinematic", "Digital Art", "Portrait"], value="Portrait", allow_custom_value=False)
|
231 |
|
232 |
with gr.Row():
|
233 |
gr.Examples(
|