Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
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 |
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=
|
66 |
-
width=
|
67 |
negative_prompt=_dont,
|
68 |
-
num_inference_steps=
|
69 |
-
guidance_scale=
|
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):
|