devudilip commited on
Commit
926c709
·
verified ·
1 Parent(s): 9c4a75f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1,13 +1,20 @@
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 *
8
  import gradio as gr
9
 
10
- def is_cat(x): return x[0].isupper()
 
 
 
 
 
 
 
11
 
12
  learn = load_learner('model.pkl')
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 22
7
  from fastai.vision.all import *
8
  import gradio as gr
9
 
10
+ !python --version
11
+ import fastai
12
+ import fastcore
13
+ import torch
14
+
15
+ 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