Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,10 @@ repo_id = "hugginglearners/grapevine_leaves_classification"
|
|
7 |
path = Path("./")
|
8 |
|
9 |
def get_y(r):
|
10 |
-
|
11 |
|
12 |
def get_x(r):
|
13 |
-
|
14 |
γγ
|
15 |
learner = from_pretrained_fastai(repo_id)
|
16 |
|
|
|
7 |
path = Path("./")
|
8 |
|
9 |
def get_y(r):
|
10 |
+
return r["label"]
|
11 |
|
12 |
def get_x(r):
|
13 |
+
return path/r["fname"]
|
14 |
γγ
|
15 |
learner = from_pretrained_fastai(repo_id)
|
16 |
|