vumichien commited on
Commit
17ee78f
1 Parent(s): cefd0b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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):