Ayaz Akkaş
commited on
Commit
·
e839df1
1
Parent(s):
988b00f
Add model
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as gr
|
|
| 4 |
|
| 5 |
learn = load_learner('model.pkl')
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
def classify_image(img):
|
| 10 |
pred, idx, probs =learn.predict(img)
|
|
|
|
| 4 |
|
| 5 |
learn = load_learner('model.pkl')
|
| 6 |
|
| 7 |
+
categories = learn.dls.vocab
|
| 8 |
|
| 9 |
def classify_image(img):
|
| 10 |
pred, idx, probs =learn.predict(img)
|