Spaces:
Sleeping
Sleeping
file path errors
Browse files
app.py
CHANGED
@@ -3,10 +3,9 @@ from fastai.vision.all import *
|
|
3 |
import os
|
4 |
# Load a pre-trained image classification model
|
5 |
root = os.path.dirname(__file__)
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
print(os.listdir())
|
10 |
|
11 |
# Function to make predictions from an image
|
12 |
def classify_image(image):
|
|
|
3 |
import os
|
4 |
# Load a pre-trained image classification model
|
5 |
root = os.path.dirname(__file__)
|
6 |
+
|
7 |
+
learn = load_learner(os.path.join(root, "models", "model.pkl"))
|
8 |
+
|
|
|
9 |
|
10 |
# Function to make predictions from an image
|
11 |
def classify_image(image):
|