Akjava commited on
Commit
5b66651
1 Parent(s): fed6bf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- dtype = torch.bfloat16
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