Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ READ_TOKEN = os.environ.get('HF_ACCESS_TOKEN', None)
|
|
17 |
|
18 |
def get_image_pipe():
|
19 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, revision="fp16", use_auth_token=READ_TOKEN)
|
20 |
-
pipe.to(
|
21 |
return pipe
|
22 |
|
23 |
def get_model():
|
|
|
17 |
|
18 |
def get_image_pipe():
|
19 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, revision="fp16", use_auth_token=READ_TOKEN)
|
20 |
+
pipe.to('cuda')
|
21 |
return pipe
|
22 |
|
23 |
def get_model():
|