Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ from fastai.learner import load_learner
|
|
24 |
|
25 |
model = torch.load("h2z-85epoch.pth",map_location=torch.device('cpu'))
|
26 |
def generate_img(img):
|
27 |
-
_,_,preds =
|
28 |
return preds
|
29 |
|
30 |
|
|
|
24 |
|
25 |
model = torch.load("h2z-85epoch.pth",map_location=torch.device('cpu'))
|
26 |
def generate_img(img):
|
27 |
+
_,_,preds = model.get_preds(dl=[b], with_decoded=True)
|
28 |
return preds
|
29 |
|
30 |
|