Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ labels = learn.dls.vocab
|
|
15 |
|
16 |
def predict(path):
|
17 |
|
18 |
-
pred,pred_idx,probs = learn.predict(path)
|
19 |
|
20 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
21 |
|
|
|
15 |
|
16 |
def predict(path):
|
17 |
|
18 |
+
pred,pred_idx,probs = learn.predict(str(path))
|
19 |
|
20 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
21 |
|