Update app.py
Browse files
app.py
CHANGED
@@ -195,35 +195,36 @@ footer {
|
|
195 |
|
196 |
with gr.Blocks(css=css, theme=theme, fill_width= False) as app:
|
197 |
with gr.Tab("Basic Settings"):
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
|
210 |
with gr.Tab("Extended settings"):
|
211 |
-
with gr.
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
|
|
227 |
|
228 |
with gr.Column(scale=0):
|
229 |
text_button = gr.Button("Generate image", variant="primary", interactive=True, elem_id="generate")
|
|
|
195 |
|
196 |
with gr.Blocks(css=css, theme=theme, fill_width= False) as app:
|
197 |
with gr.Tab("Basic Settings"):
|
198 |
+
with gr.Column(scale=0):
|
199 |
+
with gr.Row():
|
200 |
+
prompt = gr.Textbox(placeholder="Enter the image description...", show_label=True, label='Image Prompt ✍️', lines=3, scale=6, show_copy_button = True)
|
201 |
+
with gr.Row():
|
202 |
+
task = gr.Radio(interactive=True, value="Stable Diffusion XL 1.0", show_label=True, label="Model of neural network 🤖 ", choices=['Stable Diffusion XL 1.0', 'Crystal Clear XL',
|
203 |
+
'Juggernaut XL', 'DreamShaper XL',
|
204 |
+
'SDXL Niji', 'Cinemax SDXL', 'NightVision XL'])
|
205 |
+
gr.Examples(
|
206 |
+
examples = examples,
|
207 |
+
inputs = [prompt],
|
208 |
+
)
|
209 |
|
210 |
with gr.Tab("Extended settings"):
|
211 |
+
with gr.Column(scale=0):
|
212 |
+
with gr.Row():
|
213 |
+
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=True, label='Negative Prompt:', scale=6, lines=3, value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry")
|
214 |
+
|
215 |
+
with gr.Row():
|
216 |
+
sampler = gr.Dropdown(value="DPM++ S", show_label=True, label="Sampling Method:", choices=[
|
217 |
+
"DPM++ 2M Karras", "DPM++ 2S a Karras", "DPM2 a Karras", "DPM2 Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "dpmpp_2s_ancestral", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "LMS Karras", "PLMS", "UniPC", "UniPC BH2"])
|
218 |
+
with gr.Row():
|
219 |
+
steps = gr.Slider(show_label=True, label="Sampling Steps:", minimum=1, maximum=50, value=35, step=1)
|
220 |
+
with gr.Row():
|
221 |
+
cfg_scale = gr.Slider(show_label=True, label="CFG Scale:", minimum=1, maximum=20, value=7, step=1)
|
222 |
+
with gr.Row():
|
223 |
+
seed = gr.Number(show_label=True, label="Seed:", minimum=-1, maximum=1000000, value=-1, step=1)
|
224 |
+
with gr.Row():
|
225 |
+
width = gr.Slider(label="Width", minimum=512, maximum=2048, step=8, value=896, interactive=True,)
|
226 |
+
with gr.Row():
|
227 |
+
height = gr.Slider(label="Height", minimum=512, maximum=2048, step=8, value=1152,interactive=True,)
|
228 |
|
229 |
with gr.Column(scale=0):
|
230 |
text_button = gr.Button("Generate image", variant="primary", interactive=True, elem_id="generate")
|