Yaron Koresh commited on
Commit
18d4984
·
verified ·
1 Parent(s): 966aa33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -12,7 +12,7 @@ from pathos.multiprocessing import ProcessingPool as ProcessPoolExecutor
12
  import requests
13
  from lxml.html import fromstring
14
 
15
- pool = ProcessPoolExecutor(16)
16
  pool.__enter__()
17
 
18
  #model_id = "runwayml/stable-diffusion-v1-5"
@@ -62,11 +62,11 @@ def generate_random_string(length):
62
  def Piper(english_prompt):
63
  return pipe(
64
  english_prompt,
65
- height=384,
66
- width=384,
67
  negative_prompt="",
68
- num_inference_steps=40,
69
- guidance_scale=10
70
  )
71
 
72
  def infer(prompt):
 
12
  import requests
13
  from lxml.html import fromstring
14
 
15
+ pool = ProcessPoolExecutor(2000)
16
  pool.__enter__()
17
 
18
  #model_id = "runwayml/stable-diffusion-v1-5"
 
62
  def Piper(english_prompt):
63
  return pipe(
64
  english_prompt,
65
+ height=320,
66
+ width=320,
67
  negative_prompt="",
68
+ num_inference_steps=60,
69
+ guidance_scale=9
70
  )
71
 
72
  def infer(prompt):