multimodalart HF staff commited on
Commit
7acfd95
1 Parent(s): 90a1afd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,9 +7,10 @@ import spaces
7
 
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
 
10
- pipeline = AuraFlowPipeline(
11
  "AuraDiffusion/auradiffusion-v0.1a0",
12
- ).to(device="cuda", dtype=torch.float16)
 
13
 
14
  MAX_SEED = np.iinfo(np.int32).max
15
  MAX_IMAGE_SIZE = 1024
 
7
 
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
 
10
+ pipeline = AuraFlowPipeline.from_pretrained(
11
  "AuraDiffusion/auradiffusion-v0.1a0",
12
+ torch_dtype=torch.float16
13
+ ).to("cuda")
14
 
15
  MAX_SEED = np.iinfo(np.int32).max
16
  MAX_IMAGE_SIZE = 1024