Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,21 +58,22 @@ def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Ka
|
|
58 |
|
59 |
css = """
|
60 |
#app-container {
|
61 |
-
max-width:
|
62 |
margin-left: auto;
|
63 |
margin-right: auto;
|
64 |
}
|
65 |
"""
|
66 |
|
67 |
with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
|
|
68 |
with gr.Column(elem_id="app-container"):
|
69 |
with gr.Row():
|
70 |
with gr.Column(elem_id="prompt-container"):
|
71 |
with gr.Row():
|
72 |
-
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=
|
73 |
with gr.Row():
|
74 |
with gr.Accordion("Advanced Settings", open=False):
|
75 |
-
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="
|
76 |
steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
|
77 |
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
|
78 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|
|
|
58 |
|
59 |
css = """
|
60 |
#app-container {
|
61 |
+
max-width: 600px;
|
62 |
margin-left: auto;
|
63 |
margin-right: auto;
|
64 |
}
|
65 |
"""
|
66 |
|
67 |
with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
68 |
+
gr.HTML("<center><h1>FLUX.1-Dev</h1></center>")
|
69 |
with gr.Column(elem_id="app-container"):
|
70 |
with gr.Row():
|
71 |
with gr.Column(elem_id="prompt-container"):
|
72 |
with gr.Row():
|
73 |
+
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=2, elem_id="prompt-text-input")
|
74 |
with gr.Row():
|
75 |
with gr.Accordion("Advanced Settings", open=False):
|
76 |
+
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="What should not be in the image", value="(deformed, distorted, disfigured), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, misspellings, typos", lines=3, elem_id="negative-prompt-text-input")
|
77 |
steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)
|
78 |
cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)
|
79 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])
|