Spaces:
Sleeping
Sleeping
Sina-Haz
commited on
Commit
•
5eb3e32
1
Parent(s):
96b87f8
classifier now uses relative path
Browse files
fns.py
CHANGED
@@ -190,7 +190,7 @@ def script(report, jpeg_foldername = 'images'):
|
|
190 |
report_to_jpegs(report, jpeg_foldername)
|
191 |
|
192 |
# Load in our classifier and use it to define and delete irrelevant files
|
193 |
-
classifier = load_learner('
|
194 |
others = define_others(jpeg_foldername, classifier)
|
195 |
for o in others:
|
196 |
Path(o).unlink()
|
|
|
190 |
report_to_jpegs(report, jpeg_foldername)
|
191 |
|
192 |
# Load in our classifier and use it to define and delete irrelevant files
|
193 |
+
classifier = load_learner('pr_classifier.pkl')
|
194 |
others = define_others(jpeg_foldername, classifier)
|
195 |
for o in others:
|
196 |
Path(o).unlink()
|