Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -71,15 +71,15 @@ def generate_random_string(length):
|
|
71 |
characters = string.ascii_letters + string.digits
|
72 |
return ''.join(random.choice(characters) for _ in range(length))
|
73 |
|
74 |
-
@spaces.GPU(duration=
|
75 |
def Piper(_do,_dont):
|
76 |
return pipe(
|
77 |
_do,
|
78 |
height=512,
|
79 |
width=768,
|
80 |
negative_prompt=_dont,
|
81 |
-
num_inference_steps=
|
82 |
-
guidance_scale=
|
83 |
)
|
84 |
|
85 |
def infer(prompt,prompt2):
|
|
|
71 |
characters = string.ascii_letters + string.digits
|
72 |
return ''.join(random.choice(characters) for _ in range(length))
|
73 |
|
74 |
+
@spaces.GPU(duration=45)
|
75 |
def Piper(_do,_dont):
|
76 |
return pipe(
|
77 |
_do,
|
78 |
height=512,
|
79 |
width=768,
|
80 |
negative_prompt=_dont,
|
81 |
+
num_inference_steps=100,
|
82 |
+
guidance_scale=5.5
|
83 |
)
|
84 |
|
85 |
def infer(prompt,prompt2):
|