Spaces:
Sleeping
Sleeping
amazonaws-sp
commited on
Commit
•
1aaac50
1
Parent(s):
d40c550
Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,9 @@ def generate(
|
|
60 |
):
|
61 |
if torch.cuda.is_available():
|
62 |
|
|
|
|
|
|
|
63 |
if use_img2img:
|
64 |
pipe = AutoPipelineForImage2Image.from_pretrained(model, torch_dtype=torch.float16)
|
65 |
|
|
|
60 |
):
|
61 |
if torch.cuda.is_available():
|
62 |
|
63 |
+
if not use_img2img:
|
64 |
+
pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
65 |
+
|
66 |
if use_img2img:
|
67 |
pipe = AutoPipelineForImage2Image.from_pretrained(model, torch_dtype=torch.float16)
|
68 |
|