Rooni commited on
Commit
c0df552
1 Parent(s): 4f114d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()