Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -173,7 +173,8 @@ def keywords(text,prompt_num,user_keywords):
|
|
173 |
count += 1
|
174 |
print(i)
|
175 |
print("works4")
|
176 |
-
|
|
|
177 |
print("works5")
|
178 |
images.append(image)
|
179 |
print("works6")
|
|
|
173 |
count += 1
|
174 |
print(i)
|
175 |
print("works4")
|
176 |
+
with torch.autocast("cuda"):
|
177 |
+
image = pipe(i, height=768, width=768, guidance_scale = 10).images[0]
|
178 |
print("works5")
|
179 |
images.append(image)
|
180 |
print("works6")
|