Commit
·
f69e498
1
Parent(s):
e926728
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,12 +146,12 @@ def checkbox_block():
|
|
| 146 |
return checkbox
|
| 147 |
|
| 148 |
def infer(text):
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
output_images = []
|
| 156 |
for i, image in enumerate(images_list["sample"]):
|
| 157 |
output_images.append(image)
|
|
|
|
| 146 |
return checkbox
|
| 147 |
|
| 148 |
def infer(text):
|
| 149 |
+
with autocast("cuda"):
|
| 150 |
+
images_list = pipe(
|
| 151 |
+
[text]*2,
|
| 152 |
+
num_inference_steps=50,
|
| 153 |
+
guidance_scale=7.5
|
| 154 |
+
)
|
| 155 |
output_images = []
|
| 156 |
for i, image in enumerate(images_list["sample"]):
|
| 157 |
output_images.append(image)
|