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