Spaces:
Sleeping
Sleeping
Sandhya
commited on
Commit
·
e1d34a8
1
Parent(s):
116a05c
change app
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from model import create_model
|
|
| 5 |
from timeit import default_timer as Timer
|
| 6 |
class_names=["Pizza","Steak","Sushi"]
|
| 7 |
effnetb2,effnetb2_transform=create_model(num_class=3)
|
| 8 |
-
effnetb2.load_state_dict(torch.load(f="
|
| 9 |
|
| 10 |
|
| 11 |
def predict(img):
|
|
|
|
| 5 |
from timeit import default_timer as Timer
|
| 6 |
class_names=["Pizza","Steak","Sushi"]
|
| 7 |
effnetb2,effnetb2_transform=create_model(num_class=3)
|
| 8 |
+
effnetb2.load_state_dict(torch.load(f="effnetb2_pizza_steak_sushi (1).pt",map_location=torch.device('cpu')))
|
| 9 |
|
| 10 |
|
| 11 |
def predict(img):
|