czl commited on
Commit
a6328e5
1 Parent(s): 6f4b9a2

update device to cuda only

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ from transformers import CLIPModel, CLIPProcessor
11
 
12
  from tools import synth
13
 
14
- device = "cuda" if torch.cuda.is_available() else "cpu"
15
  model_path = "runwayml/stable-diffusion-v1-5"
16
  clip_model = CLIPModel.from_pretrained("openai/clip-vit-large-patch14").to(device)
17
  clip_processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14")
 
11
 
12
  from tools import synth
13
 
14
+ device = "cuda" # if torch.cuda.is_available() else "cpu"
15
  model_path = "runwayml/stable-diffusion-v1-5"
16
  clip_model = CLIPModel.from_pretrained("openai/clip-vit-large-patch14").to(device)
17
  clip_processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14")