Spaces:
Runtime error
Runtime error
Commit
·
9449643
1
Parent(s):
f62ce63
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def pred(dist,speed,accel,timedelta,jerk,bearing,bearing_rate):
|
|
| 33 |
n_layers = 2
|
| 34 |
drop_prob = 0.2
|
| 35 |
net = ModalityLSTM(trip_dim, output_size, batch_size, hidden_dim, n_layers, train_on_gpu, drop_prob, lstm_drop_prob=0.2)
|
| 36 |
-
net.load_state_dict(torch.load("Model_Wieghts"),map_location =
|
| 37 |
net.eval()
|
| 38 |
|
| 39 |
a=torch.tensor([[dist,speed,accel,timedelta,jerk,bearing,bearing_rate]])
|
|
|
|
| 33 |
n_layers = 2
|
| 34 |
drop_prob = 0.2
|
| 35 |
net = ModalityLSTM(trip_dim, output_size, batch_size, hidden_dim, n_layers, train_on_gpu, drop_prob, lstm_drop_prob=0.2)
|
| 36 |
+
net.load_state_dict(torch.load("Model_Wieghts"),map_location = device)
|
| 37 |
net.eval()
|
| 38 |
|
| 39 |
a=torch.tensor([[dist,speed,accel,timedelta,jerk,bearing,bearing_rate]])
|