Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def generate_image(prompt, style, width, height, seed):
|
|
64 |
"Экспериментальный": "experimental style, abstract, unconventional, detailed patterns, vibrant colors"
|
65 |
}
|
66 |
|
67 |
-
prompt = style_tags.get(style, "") + " " + prompt if style_tags.get(style, "") else prompt
|
68 |
prompt = prompt.strip()
|
69 |
|
70 |
# URL-кодирование промпта
|
@@ -152,4 +152,4 @@ with gr.Blocks() as demo:
|
|
152 |
|
153 |
create_button.click(fn=generate_image, inputs=[prompt_input, style_radio, width_slider, height_slider, seed_slider], outputs=output_image)
|
154 |
|
155 |
-
demo.launch()
|
|
|
64 |
"Экспериментальный": "experimental style, abstract, unconventional, detailed patterns, vibrant colors"
|
65 |
}
|
66 |
|
67 |
+
prompt = style_tags.get(style, "") + ". " + prompt if style_tags.get(style, "") else prompt
|
68 |
prompt = prompt.strip()
|
69 |
|
70 |
# URL-кодирование промпта
|
|
|
152 |
|
153 |
create_button.click(fn=generate_image, inputs=[prompt_input, style_radio, width_slider, height_slider, seed_slider], outputs=output_image)
|
154 |
|
155 |
+
demo.queue(max_size=150).launch()
|