Spaces:
Build error
Build error
henriquemcruz
commited on
Commit
•
48e6643
1
Parent(s):
e2eccb3
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from fastai.vision.all import *
|
|
2 |
import gradio as gr
|
3 |
learn = load_learner('model3.pkl')
|
4 |
|
5 |
-
categories =
|
6 |
|
7 |
def classify_image(img):
|
8 |
pred,idx,probs = learn.predict(img)
|
|
|
2 |
import gradio as gr
|
3 |
learn = load_learner('model3.pkl')
|
4 |
|
5 |
+
categories = learn.dls.vocab
|
6 |
|
7 |
def classify_image(img):
|
8 |
pred,idx,probs = learn.predict(img)
|