Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,12 +16,12 @@ prefix_length = 10
|
|
16 |
|
17 |
model = ClipCaptionModel(prefix_length)
|
18 |
|
19 |
-
model.load_state_dict(torch.load('
|
20 |
|
21 |
model = model.eval()
|
22 |
|
23 |
coco_model = ClipCaptionModel(prefix_length)
|
24 |
-
coco_model.load_state_dict(torch.load('
|
25 |
model = model.eval()
|
26 |
|
27 |
|
|
|
16 |
|
17 |
model = ClipCaptionModel(prefix_length)
|
18 |
|
19 |
+
model.load_state_dict(torch.load('model.h5',map_location=torch.device('cpu')))
|
20 |
|
21 |
model = model.eval()
|
22 |
|
23 |
coco_model = ClipCaptionModel(prefix_length)
|
24 |
+
coco_model.load_state_dict(torch.load('COCO_model.h5',map_location=torch.device('cpu')))
|
25 |
model = model.eval()
|
26 |
|
27 |
|