Spaces:
Runtime error
Runtime error
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,15 +86,15 @@ def generate_random_string(length):
|
|
| 86 |
characters = string.ascii_letters + string.digits
|
| 87 |
return ''.join(random.choice(characters) for _ in range(length))
|
| 88 |
|
| 89 |
-
@spaces.GPU(duration=
|
| 90 |
def Piper(_do,_dont):
|
| 91 |
return pipe(
|
| 92 |
_do,
|
| 93 |
height=320,
|
| 94 |
width=576,
|
| 95 |
negative_prompt=_dont,
|
| 96 |
-
num_inference_steps=
|
| 97 |
-
guidance_scale=
|
| 98 |
)
|
| 99 |
|
| 100 |
def infer(prompt,prompt2):
|
|
|
|
| 86 |
characters = string.ascii_letters + string.digits
|
| 87 |
return ''.join(random.choice(characters) for _ in range(length))
|
| 88 |
|
| 89 |
+
@spaces.GPU(duration=27)
|
| 90 |
def Piper(_do,_dont):
|
| 91 |
return pipe(
|
| 92 |
_do,
|
| 93 |
height=320,
|
| 94 |
width=576,
|
| 95 |
negative_prompt=_dont,
|
| 96 |
+
num_inference_steps=70,
|
| 97 |
+
guidance_scale=4
|
| 98 |
)
|
| 99 |
|
| 100 |
def infer(prompt,prompt2):
|