Tomas Ellis commited on
Commit
8cd4681
·
1 Parent(s): 2275664

fixed imports

Browse files
Files changed (2) hide show
  1. app.ipynb +2 -1
  2. app.py +8 -1
app.ipynb CHANGED
@@ -16,6 +16,7 @@
16
  ],
17
  "source": [
18
  "#|default_exp app\n",
 
19
  "from fastai.vision.all import *\n",
20
  "import gradio as gr\n",
21
  "print(gr.__version__)\n",
@@ -314,7 +315,7 @@
314
  },
315
  {
316
  "cell_type": "code",
317
- "execution_count": 10,
318
  "id": "4083f107-04ed-4248-9acd-45f142a0869f",
319
  "metadata": {},
320
  "outputs": [],
 
16
  ],
17
  "source": [
18
  "#|default_exp app\n",
19
+ "#|export\n",
20
  "from fastai.vision.all import *\n",
21
  "import gradio as gr\n",
22
  "print(gr.__version__)\n",
 
315
  },
316
  {
317
  "cell_type": "code",
318
+ "execution_count": 11,
319
  "id": "4083f107-04ed-4248-9acd-45f142a0869f",
320
  "metadata": {},
321
  "outputs": [],
app.py CHANGED
@@ -1,7 +1,14 @@
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 2
7
  learn = load_learner('catornot_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 0
7
+ from fastai.vision.all import *
8
+ import gradio as gr
9
+ print(gr.__version__)
10
+
11
+ def is_cat(x): return x[0].isupper()
12
 
13
  # %% app.ipynb 2
14
  learn = load_learner('catornot_model.pkl')