mikegarts commited on
Commit
61d1651
1 Parent(s): 79c9a48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(pipe.device)
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():