Spaces:
Running
on
Zero
Running
on
Zero
update device to cuda only
Browse files
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")
|