Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -77,14 +77,14 @@ def generate_random_string(length):
|
|
77 |
characters = string.ascii_letters + string.digits
|
78 |
return ''.join(random.choice(characters) for _ in range(length))
|
79 |
|
80 |
-
@spaces.GPU(duration=
|
81 |
def Piper(_do):
|
82 |
try:
|
83 |
retu = pipe(
|
84 |
_do,
|
85 |
height=448,
|
86 |
width=448,
|
87 |
-
num_inference_steps=
|
88 |
max_sequence_length=256,
|
89 |
guidance_scale=0
|
90 |
)
|
|
|
77 |
characters = string.ascii_letters + string.digits
|
78 |
return ''.join(random.choice(characters) for _ in range(length))
|
79 |
|
80 |
+
@spaces.GPU(duration=35)
|
81 |
def Piper(_do):
|
82 |
try:
|
83 |
retu = pipe(
|
84 |
_do,
|
85 |
height=448,
|
86 |
width=448,
|
87 |
+
num_inference_steps=4,
|
88 |
max_sequence_length=256,
|
89 |
guidance_scale=0
|
90 |
)
|