Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import json
|
|
10 |
model = torch.load("/home/user/app/model_final.pkl",map_location=torch.device('cpu'))
|
11 |
model.eval()
|
12 |
|
13 |
-
with open("/
|
14 |
classes = json.load(read_file)
|
15 |
|
16 |
def classify_image(inp):
|
|
|
10 |
model = torch.load("/home/user/app/model_final.pkl",map_location=torch.device('cpu'))
|
11 |
model.eval()
|
12 |
|
13 |
+
with open("/home/user/app/class_mapping.json", "r") as read_file:
|
14 |
classes = json.load(read_file)
|
15 |
|
16 |
def classify_image(inp):
|