Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,12 @@ from huggingface_hub import from_pretrained_fastai
|
|
4 |
examples = ["image_1.png", "image_2.png"]
|
5 |
repo_id = "hugginglearners/grapevine_leaves_classification"
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
learner = from_pretrained_fastai(repo_id)
|
8 |
|
9 |
def inference(image):
|
|
|
4 |
examples = ["image_1.png", "image_2.png"]
|
5 |
repo_id = "hugginglearners/grapevine_leaves_classification"
|
6 |
|
7 |
+
def get_y(r):
|
8 |
+
return r["label"]
|
9 |
+
|
10 |
+
def get_x(r):
|
11 |
+
return path/r["fname"]
|
12 |
+
|
13 |
learner = from_pretrained_fastai(repo_id)
|
14 |
|
15 |
def inference(image):
|