Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ model_path = "anime.pkl"
|
|
6 |
learn = load_learner(model_path)
|
7 |
|
8 |
# Define categories
|
9 |
-
categories = dls.vocab
|
10 |
|
11 |
# Define the image classification function
|
12 |
def Classify_image(img):
|
|
|
6 |
learn = load_learner(model_path)
|
7 |
|
8 |
# Define categories
|
9 |
+
categories = learn.dls.vocab
|
10 |
|
11 |
# Define the image classification function
|
12 |
def Classify_image(img):
|