Spaces:
Runtime error
Runtime error
miguelcarv
commited on
Commit
•
7ddbe26
1
Parent(s):
c40944a
now added zerogpu
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ if config["first_level"]:
|
|
45 |
|
46 |
print("Created model")
|
47 |
|
48 |
-
DEVICE =
|
49 |
model_path = get_model_path(HF_MODEL)
|
50 |
model.load_state_dict(torch.load(model_path, map_location="cpu"))
|
51 |
model = model.to(DEVICE)
|
|
|
45 |
|
46 |
print("Created model")
|
47 |
|
48 |
+
DEVICE = 'cuda'
|
49 |
model_path = get_model_path(HF_MODEL)
|
50 |
model.load_state_dict(torch.load(model_path, map_location="cpu"))
|
51 |
model = model.to(DEVICE)
|