Commit
·
7b93470
1
Parent(s):
4cdffbf
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,16 +154,16 @@ def checkbox_block():
|
|
| 154 |
return checkbox
|
| 155 |
|
| 156 |
def infer(text):
|
| 157 |
-
with autocast("cuda"):
|
| 158 |
-
|
| 159 |
[text]*2,
|
| 160 |
num_inference_steps=50,
|
| 161 |
guidance_scale=7.5
|
| 162 |
)
|
| 163 |
-
output_images = []
|
| 164 |
-
for i, image in enumerate(images_list
|
| 165 |
-
|
| 166 |
-
return
|
| 167 |
|
| 168 |
# idetnical to `infer` function without gradio state updates for share btn
|
| 169 |
def infer_examples(text):
|
|
|
|
| 154 |
return checkbox
|
| 155 |
|
| 156 |
def infer(text):
|
| 157 |
+
#with autocast("cuda"):
|
| 158 |
+
images_list = pipe(
|
| 159 |
[text]*2,
|
| 160 |
num_inference_steps=50,
|
| 161 |
guidance_scale=7.5
|
| 162 |
)
|
| 163 |
+
#output_images = []
|
| 164 |
+
#for i, image in enumerate(images_list.images):
|
| 165 |
+
# output_images.append(image)
|
| 166 |
+
return images_list.images, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
| 167 |
|
| 168 |
# idetnical to `infer` function without gradio state updates for share btn
|
| 169 |
def infer_examples(text):
|