sagivphilipp commited on
Commit
c8ae05e
·
1 Parent(s): 9c2d871

get functions

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -5,6 +5,12 @@ plt = platform.system()
5
  if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
6
  learn = load_learner('model.pkl')
7
 
 
 
 
 
 
 
8
 
9
  labels = learner.dls.vocab
10
 
 
5
  if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
6
  learn = load_learner('model.pkl')
7
 
8
+ def get_x(r):
9
+ return r['name']
10
+
11
+
12
+ def get_y(r):
13
+ return r['labels'].split(' ')
14
 
15
  labels = learner.dls.vocab
16