Spaces:
Sleeping
Sleeping
Commit
·
99bfc21
1
Parent(s):
bcef6a3
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ checkpoint = torch.load('model.pth', map_location=torch.device('cpu'))
|
|
| 9 |
# Load the state dictionary into model
|
| 10 |
model.load_state_dict(checkpoint['model_state_dict'])
|
| 11 |
|
| 12 |
-
# Set
|
| 13 |
model.eval()
|
| 14 |
|
| 15 |
# Transforms
|
|
|
|
| 9 |
# Load the state dictionary into model
|
| 10 |
model.load_state_dict(checkpoint['model_state_dict'])
|
| 11 |
|
| 12 |
+
# Set model to evaluation mode
|
| 13 |
model.eval()
|
| 14 |
|
| 15 |
# Transforms
|