Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ class RegressionModel2(nn.Module):
|
|
21 |
return out
|
22 |
|
23 |
# Load the saved model state dictionary
|
24 |
-
model = RegressionModel2(
|
25 |
model.load_state_dict(torch.load('model.pt'))
|
26 |
model.eval() # Set the model to evaluation mode
|
27 |
|
|
|
21 |
return out
|
22 |
|
23 |
# Load the saved model state dictionary
|
24 |
+
model = RegressionModel2(3, 32, 1)
|
25 |
model.load_state_dict(torch.load('model.pt'))
|
26 |
model.eval() # Set the model to evaluation mode
|
27 |
|