Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ import spaces
|
|
14 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
15 |
dtype = torch.bfloat16
|
16 |
|
|
|
17 |
def load_models(model_path="MeissonFlow/Meissonic",
|
18 |
transformer_path="MeissonFlow/Muddit"):
|
19 |
model = SymmetricTransformer2DModel.from_pretrained(
|
|
|
14 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
15 |
dtype = torch.bfloat16
|
16 |
|
17 |
+
@spaces.GPU
|
18 |
def load_models(model_path="MeissonFlow/Meissonic",
|
19 |
transformer_path="MeissonFlow/Muddit"):
|
20 |
model = SymmetricTransformer2DModel.from_pretrained(
|