Spaces:
Sleeping
Sleeping
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(english_prompt):
|
63 |
return pipe(
|
64 |
english_prompt,
|
65 |
-
height=
|
66 |
-
width=
|
67 |
negative_prompt="",
|
68 |
-
num_inference_steps=
|
69 |
-
guidance_scale=
|
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):
|