craftgamesnetwork commited on
Commit
c648359
·
verified ·
1 Parent(s): 3ee9d3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -21,7 +21,6 @@ if not torch.cuda.is_available():
21
  MAX_SEED = np.iinfo(np.int32).max
22
  CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES") == "1"
23
  MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "1824"))
24
- DEFAULT_CONCURRENCY_LIMIT = os.getenv("DEFAULT_CONCURRENCY_LIMIT") == "2"
25
  USE_TORCH_COMPILE = os.getenv("USE_TORCH_COMPILE") == "1"
26
  ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
27
  ENABLE_USE_LORA = os.getenv("ENABLE_USE_LORA", "1") == "1"
@@ -338,4 +337,4 @@ with gr.Blocks(theme=gr.themes.Soft(), css="style.css") as demo:
338
  )
339
 
340
  if __name__ == "__main__":
341
- demo.queue().launch()
 
21
  MAX_SEED = np.iinfo(np.int32).max
22
  CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES") == "1"
23
  MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "1824"))
 
24
  USE_TORCH_COMPILE = os.getenv("USE_TORCH_COMPILE") == "1"
25
  ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
26
  ENABLE_USE_LORA = os.getenv("ENABLE_USE_LORA", "1") == "1"
 
337
  )
338
 
339
  if __name__ == "__main__":
340
+ demo.queue(default_concurrency_limit=2).launch()