devudilip commited on
Commit
b7dd046
·
verified ·
1 Parent(s): 322b562

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: app.ipynb.
2
 
3
  # %% auto 0
4
- __all__ = ['learn', 'categories', 'image', 'label', 'examples', 'intf', 'classify_image']
5
 
6
  # %% app.ipynb 22
7
  from fastai.vision.all import *
@@ -16,6 +16,7 @@ print(f"fastai: {fastai.__version__}")
16
  print(f"fastcore: {fastcore.__version__}")
17
  print(f"torch: {torch.__version__}")
18
 
 
19
  learn = load_learner('model.pkl')
20
 
21
  # %% app.ipynb 37
 
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: app.ipynb.
2
 
3
  # %% auto 0
4
+ __all__ = ['learn', 'categories', 'image', 'label', 'examples', 'intf', 'is_cat', 'classify_image']
5
 
6
  # %% app.ipynb 22
7
  from fastai.vision.all import *
 
16
  print(f"fastcore: {fastcore.__version__}")
17
  print(f"torch: {torch.__version__}")
18
 
19
+ def is_cat(x): return x[0].isupper()
20
  learn = load_learner('model.pkl')
21
 
22
  # %% app.ipynb 37