Yaron Koresh commited on
Commit
ba57615
·
verified ·
1 Parent(s): 4003d15

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(2000)
16
  pool.__enter__()
17
 
18
  #model_id = "runwayml/stable-diffusion-v1-5"
@@ -62,11 +62,11 @@ def generate_random_string(length):
62
  def Piper(_do, _dont):
63
  return pipe(
64
  _do,
65
- height=512,
66
- width=512,
67
  negative_prompt=_dont,
68
- num_inference_steps=200,
69
- guidance_scale=1.1
70
  )
71
 
72
  def infer(prompt1,prompt2,prompt3,prompt4):
 
12
  import requests
13
  from lxml.html import fromstring
14
 
15
+ pool = ProcessPoolExecutor(4)
16
  pool.__enter__()
17
 
18
  #model_id = "runwayml/stable-diffusion-v1-5"
 
62
  def Piper(_do, _dont):
63
  return pipe(
64
  _do,
65
+ height=1024,
66
+ width=1024,
67
  negative_prompt=_dont,
68
+ num_inference_steps=50,
69
+ guidance_scale=10
70
  )
71
 
72
  def infer(prompt1,prompt2,prompt3,prompt4):