Spaces:
Sleeping
Sleeping
amazonaws-sp
commited on
Commit
•
9fdb4fb
1
Parent(s):
83d6fc0
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def generate(
|
|
61 |
if torch.cuda.is_available():
|
62 |
|
63 |
if use_img2img:
|
64 |
-
pipe =
|
65 |
|
66 |
response = requests.get(url)
|
67 |
init_image = Image.open(BytesIO(response.content)).convert("RGB")
|
|
|
61 |
if torch.cuda.is_available():
|
62 |
|
63 |
if use_img2img:
|
64 |
+
pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
65 |
|
66 |
response = requests.get(url)
|
67 |
init_image = Image.open(BytesIO(response.content)).convert("RGB")
|