osanseviero commited on
Commit
5f31b46
1 Parent(s): 167de55

Experiment with helpers

Browse files
Files changed (2) hide show
  1. helpers.py +4 -0
  2. pipeline.py +1 -4
helpers.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Custom code used by the model.
2
+
3
+ def is_cat(x):
4
+ return x[0].isupper()
pipeline.py CHANGED
@@ -3,11 +3,8 @@ from PIL import Image
3
 
4
  import os
5
  from fastai.learner import load_learner
 
6
 
7
- # Custom code used by the model.
8
-
9
- def is_cat(x):
10
- return x[0].isupper()
11
 
12
  class PreTrainedPipeline():
13
  def __init__(self, path=""):
 
3
 
4
  import os
5
  from fastai.learner import load_learner
6
+ from helpers import is_cat
7
 
 
 
 
 
8
 
9
  class PreTrainedPipeline():
10
  def __init__(self, path=""):