RanM commited on
Commit
e6a70ca
1 Parent(s): 61d26c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -5,6 +5,9 @@ from diffusers import AutoPipelineForText2Image
5
  import gradio as gr
6
  import base64
7
 
 
 
 
8
  def load_model():
9
  print("Loading the Stable Diffusion model...")
10
  try:
@@ -77,7 +80,7 @@ gradio_interface = gr.Interface(
77
  gr.Dropdown(["oil painting", "sketch", "watercolor"], label="Selected Style")
78
  ],
79
  outputs="json",
80
- concurrency_limit=3)
81
 
82
  if __name__ == "__main__":
83
  print("Launching Gradio interface...")
 
5
  import gradio as gr
6
  import base64
7
 
8
+
9
+ CONCURRENCY_LIMIT = 5
10
+
11
  def load_model():
12
  print("Loading the Stable Diffusion model...")
13
  try:
 
80
  gr.Dropdown(["oil painting", "sketch", "watercolor"], label="Selected Style")
81
  ],
82
  outputs="json",
83
+ concurrency_limit=CONCURRENCY_LIMIT)
84
 
85
  if __name__ == "__main__":
86
  print("Launching Gradio interface...")