Spaces:
Sleeping
Sleeping
Commit ·
f2e4334
1
Parent(s): 90b6d22
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,7 @@ from model import model
|
|
| 4 |
from torchvision import transforms
|
| 5 |
|
| 6 |
#Load the Model
|
| 7 |
-
model.load_state_dict(torch.load('mnist_model.pth')
|
| 8 |
-
|
| 9 |
# Set model to evaluation mode
|
| 10 |
model.eval()
|
| 11 |
|
|
|
|
| 4 |
from torchvision import transforms
|
| 5 |
|
| 6 |
#Load the Model
|
| 7 |
+
model.load_state_dict(torch.load('mnist_model.pth'))
|
|
|
|
| 8 |
# Set model to evaluation mode
|
| 9 |
model.eval()
|
| 10 |
|