Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ model = VALLE(
|
|
62 |
prepend_bos=True,
|
63 |
num_quantizers=NUM_QUANTIZERS,
|
64 |
).to(device)
|
65 |
-
checkpoint = torch.load("./epoch-10.pt", map_location='cpu')
|
66 |
missing_keys, unexpected_keys = model.load_state_dict(
|
67 |
checkpoint["model"], strict=True
|
68 |
)
|
|
|
62 |
prepend_bos=True,
|
63 |
num_quantizers=NUM_QUANTIZERS,
|
64 |
).to(device)
|
65 |
+
checkpoint = torch.load("./epoch-10.pt", map_location='cpu', weights_only=True)
|
66 |
missing_keys, unexpected_keys = model.load_state_dict(
|
67 |
checkpoint["model"], strict=True
|
68 |
)
|