henriquemcruz commited on
Commit
48e6643
1 Parent(s): e2eccb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = ('Excel', 'Numbers', 'Rows', 'Sheets')
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)