Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,11 +4,11 @@ import random
|
|
4 |
import spaces
|
5 |
import torch
|
6 |
from diffusers import DiffusionPipeline
|
7 |
-
|
8 |
# for initial data
|
9 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype).to("cpu")
|
10 |
|
11 |
-
|
12 |
#device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
device = "cuda"
|
14 |
|
|
|
4 |
import spaces
|
5 |
import torch
|
6 |
from diffusers import DiffusionPipeline
|
7 |
+
dtype = torch.bfloat16
|
8 |
# for initial data
|
9 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype).to("cpu")
|
10 |
|
11 |
+
|
12 |
#device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
device = "cuda"
|
14 |
|