Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def process_img(image, filename):
|
|
26 |
|
27 |
# filename = image.name.split("/")[-1]
|
28 |
# if filename in image_to_weights:
|
29 |
-
model_path = image_to_weights[
|
30 |
checkpoints = torch.load(model_path, map_location=device)
|
31 |
model.load_state_dict(checkpoints['params'])
|
32 |
model.to(device)
|
|
|
26 |
|
27 |
# filename = image.name.split("/")[-1]
|
28 |
# if filename in image_to_weights:
|
29 |
+
model_path = image_to_weights[1]
|
30 |
checkpoints = torch.load(model_path, map_location=device)
|
31 |
model.load_state_dict(checkpoints['params'])
|
32 |
model.to(device)
|