Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -171,9 +171,9 @@ with gr.Blocks(css=css) as dalle:
|
|
171 |
with gr.Tab("Расширенные настройки"):
|
172 |
with gr.Row():
|
173 |
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")
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
with gr.Row():
|
178 |
steps = gr.Slider(label="Количество шагов обработки", value=25, minimum=1, maximum=70, step=1)
|
179 |
with gr.Row():
|
@@ -200,7 +200,7 @@ with gr.Blocks(css=css) as dalle:
|
|
200 |
with gr.Row():
|
201 |
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery", show_share_button=False)
|
202 |
|
203 |
-
text_button.click(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, gpt
|
204 |
-
text_prompt.submit(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, gpt
|
205 |
|
206 |
dalle.launch(show_api=False, share=False)
|
|
|
171 |
with gr.Tab("Расширенные настройки"):
|
172 |
with gr.Row():
|
173 |
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")
|
174 |
+
# with gr.Row():
|
175 |
+
# width = gr.Slider(label="Ширина", value=512, minimum=96, maximum=1024, step=16)
|
176 |
+
# height = gr.Slider(label="Высота", value=512, minimum=96, maximum=1024, step=16)
|
177 |
with gr.Row():
|
178 |
steps = gr.Slider(label="Количество шагов обработки", value=25, minimum=1, maximum=70, step=1)
|
179 |
with gr.Row():
|
|
|
200 |
with gr.Row():
|
201 |
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery", show_share_button=False)
|
202 |
|
203 |
+
text_button.click(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, gpt], outputs=image_output, concurrency_limit=250)
|
204 |
+
text_prompt.submit(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, gpt], outputs=image_output, concurrency_limit=250)
|
205 |
|
206 |
dalle.launch(show_api=False, share=False)
|