AlekseyCalvin commited on
Commit
cddcf3a
·
verified ·
1 Parent(s): b79d883

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ with open('loras.json', 'r') as f:
28
 
29
  # Initialize the base model
30
  dtype = torch.bfloat16
31
- device = "cuda" if torch.cuda.is_available() else "cpu"
32
  base_model = "John6666/hyper-flux1-dev-fp8-flux"
33
  taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
34
  good_vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae", torch_dtype=dtype).to(device)
 
28
 
29
  # Initialize the base model
30
  dtype = torch.bfloat16
31
+ device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
32
  base_model = "John6666/hyper-flux1-dev-fp8-flux"
33
  taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
34
  good_vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae", torch_dtype=dtype).to(device)