Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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)
|