Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,7 @@ def get_x(r):
|
|
19 |
return path/r["fname"]
|
20 |
|
21 |
learner = from_pretrained_fastai(repo_id)
|
|
|
22 |
|
23 |
def inference(image):
|
24 |
label_predict,_,probs = learner.predict(image)
|
|
|
19 |
return path/r["fname"]
|
20 |
|
21 |
learner = from_pretrained_fastai(repo_id)
|
22 |
+
labels = learner.dls.vocab
|
23 |
|
24 |
def inference(image):
|
25 |
label_predict,_,probs = learner.predict(image)
|