Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -179,7 +179,7 @@ with gr.Blocks(css=css) as dalle:
|
|
179 |
|
180 |
with gr.Tab("Расширенные настройки"):
|
181 |
with gr.Row():
|
182 |
-
negative_prompt = gr.Textbox(label="Исключения", placeholder="Чего не должно быть на изображении", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input")
|
183 |
with gr.Row():
|
184 |
width = gr.Slider(label="Ширина", value=512, minimum=96, maximum=2048, step=16)
|
185 |
height = gr.Slider(label="Высота", value=512, minimum=96, maximum=2048, step=16)
|
@@ -208,7 +208,7 @@ with gr.Blocks(css=css) as dalle:
|
|
208 |
with gr.Row():
|
209 |
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery", show_share_button=False)
|
210 |
|
211 |
-
text_button.click(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, gpt], outputs=image_output, concurrency_limit=250)
|
212 |
-
text_prompt.submit(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, gpt], outputs=image_output, concurrency_limit=250)
|
213 |
|
214 |
dalle.launch(show_api=False, share=False)
|
|
|
179 |
|
180 |
with gr.Tab("Расширенные настройки"):
|
181 |
with gr.Row():
|
182 |
+
negative_prompt = gr.Textbox(label="Исключения", placeholder="Чего не должно быть на изображении", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input", visible=False)
|
183 |
with gr.Row():
|
184 |
width = gr.Slider(label="Ширина", value=512, minimum=96, maximum=2048, step=16)
|
185 |
height = gr.Slider(label="Высота", value=512, minimum=96, maximum=2048, step=16)
|
|
|
208 |
with gr.Row():
|
209 |
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery", show_share_button=False)
|
210 |
|
211 |
+
text_button.click(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, gpt, height, width], outputs=image_output, concurrency_limit=250)
|
212 |
+
text_prompt.submit(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, gpt, height, width], outputs=image_output, concurrency_limit=250)
|
213 |
|
214 |
dalle.launch(show_api=False, share=False)
|