Spaces:
Runtime error
Runtime error
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,15 +83,15 @@ def generate_random_string(length):
|
|
| 83 |
characters = string.ascii_letters + string.digits
|
| 84 |
return ''.join(random.choice(characters) for _ in range(length))
|
| 85 |
|
| 86 |
-
@spaces.GPU(duration=
|
| 87 |
def Piper(_do,_dont):
|
| 88 |
return pipe(
|
| 89 |
_do,
|
| 90 |
height=256,
|
| 91 |
-
width=
|
| 92 |
negative_prompt=_dont,
|
| 93 |
-
num_inference_steps=
|
| 94 |
-
guidance_scale=3.
|
| 95 |
)
|
| 96 |
|
| 97 |
def infer(prompt_en,prompt2_en):
|
|
@@ -128,7 +128,7 @@ footer {
|
|
| 128 |
max-width: 15cm !important;
|
| 129 |
}
|
| 130 |
.image-container {
|
| 131 |
-
aspect-ratio:
|
| 132 |
}
|
| 133 |
.dropdown-arrow {
|
| 134 |
display: none !important;
|
|
|
|
| 83 |
characters = string.ascii_letters + string.digits
|
| 84 |
return ''.join(random.choice(characters) for _ in range(length))
|
| 85 |
|
| 86 |
+
@spaces.GPU(duration=33)
|
| 87 |
def Piper(_do,_dont):
|
| 88 |
return pipe(
|
| 89 |
_do,
|
| 90 |
height=256,
|
| 91 |
+
width=768,
|
| 92 |
negative_prompt=_dont,
|
| 93 |
+
num_inference_steps=75,
|
| 94 |
+
guidance_scale=3.3
|
| 95 |
)
|
| 96 |
|
| 97 |
def infer(prompt_en,prompt2_en):
|
|
|
|
| 128 |
max-width: 15cm !important;
|
| 129 |
}
|
| 130 |
.image-container {
|
| 131 |
+
aspect-ratio: 768 / 256 !important;
|
| 132 |
}
|
| 133 |
.dropdown-arrow {
|
| 134 |
display: none !important;
|