Mario Namtao Shianti Larcher commited on
Commit
cf87808
1 Parent(s): ad0b5ad

Update app

Browse files
Files changed (2) hide show
  1. app.ipynb +0 -0
  2. app.py +7 -1
app.ipynb CHANGED
The diff for this file is too large to render. See raw diff
 
app.py CHANGED
@@ -1,7 +1,13 @@
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 3
7
  learn = load_learner("model.pkl")
 
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 1
7
+ from fastai.vision.all import *
8
+ import gradio as gr
9
+
10
+ def is_cat(x): return x[0].isupper()
11
 
12
  # %% app.ipynb 3
13
  learn = load_learner("model.pkl")