Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ examples = ["image_1.png", "image_2.png"]
|
|
5 |
repo_id = "hugginglearners/grapevine_leaves_classification"
|
6 |
|
7 |
def get_y(r):
|
8 |
-
|
9 |
|
10 |
def get_x(r):
|
11 |
-
|
12 |
γγ
|
13 |
learner = from_pretrained_fastai(repo_id)
|
14 |
|
|
|
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 |
|