Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -251,16 +251,12 @@ with gr.Blocks(css=css) as demo:
|
|
251 |
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
252 |
|
253 |
with gr.Tab("img2img", id='i2i'):
|
254 |
-
with gr.Row():
|
255 |
-
with gr.Column(scale=6, min_width=600):
|
256 |
-
i2i_prompt = gr.Textbox("", placeholder="Prompt", show_label=False, lines=3)
|
257 |
-
i2i_negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry")
|
258 |
-
with gr.Column():
|
259 |
-
i2i_text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
|
260 |
-
|
261 |
with gr.Row():
|
262 |
with gr.Column(scale=3):
|
263 |
with gr.Tab("Основные настройки"):
|
|
|
|
|
|
|
264 |
i2i_image_input = gr.Image(type="pil")
|
265 |
|
266 |
with gr.Row():
|
@@ -289,8 +285,10 @@ with gr.Blocks(css=css) as demo:
|
|
289 |
i2i_cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
290 |
i2i_denoising = gr.Slider(label="Denoising Strength", minimum=0, maximum=1, value=0.7, step=0.1)
|
291 |
i2i_seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
292 |
-
|
293 |
-
|
|
|
|
|
294 |
with gr.Column(scale=2):
|
295 |
i2i_image_output = gr.Image()
|
296 |
|
|
|
251 |
text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
252 |
|
253 |
with gr.Tab("img2img", id='i2i'):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
with gr.Row():
|
255 |
with gr.Column(scale=3):
|
256 |
with gr.Tab("Основные настройки"):
|
257 |
+
with gr.Column(scale=6, min_width=600):
|
258 |
+
i2i_prompt = gr.Textbox("", placeholder="Prompt", show_label=False, lines=3)
|
259 |
+
i2i_negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry")
|
260 |
i2i_image_input = gr.Image(type="pil")
|
261 |
|
262 |
with gr.Row():
|
|
|
285 |
i2i_cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
286 |
i2i_denoising = gr.Slider(label="Denoising Strength", minimum=0, maximum=1, value=0.7, step=0.1)
|
287 |
i2i_seed = gr.Slider(label="Seed", minimum=-1, maximum=10000000, value=-1)
|
288 |
+
|
289 |
+
|
290 |
+
with gr.Column():
|
291 |
+
i2i_text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
|
292 |
with gr.Column(scale=2):
|
293 |
i2i_image_output = gr.Image()
|
294 |
|