GhostDetector commited on
Commit
debda80
Β·
1 Parent(s): b39d5ba

created model in linux

Browse files
.gitignore CHANGED
@@ -1,2 +1,5 @@
1
  notebook2script.py
2
- 02_exp_app.ipynb
 
 
 
 
1
  notebook2script.py
2
+ 02_exp_app.ipynb
3
+ 02_production.ipynb
4
+ linux_only.ipynb
5
+ images/
app.py CHANGED
@@ -10,7 +10,7 @@ import gradio as gr
10
  def is_sea(x) : return x[0].isupper()
11
 
12
  # %% ../02_exp_app.ipynb 3
13
- learn = load_learner('export.pkl')
14
 
15
  # %% ../02_exp_app.ipynb 5
16
  categories = ('River', "Sea", "Stuffed")
@@ -22,7 +22,7 @@ def classify_image(img):
22
  # %% ../02_exp_app.ipynb 7
23
  image = gr.inputs.Image(shape = (192,192))
24
  label = gr.outputs.Label()
25
- examples = ['images/seaotter.jpg' , 'images/riverotter.jpg' , 'images/stuffedotter.jpg']
26
 
27
  intf = gr.Interface(fn=classify_image, inputs=image,outputs=label,examples=examples)
28
  intf.launch(inline=False)
 
10
  def is_sea(x) : return x[0].isupper()
11
 
12
  # %% ../02_exp_app.ipynb 3
13
+ learn = load_learner('model.pkl')
14
 
15
  # %% ../02_exp_app.ipynb 5
16
  categories = ('River', "Sea", "Stuffed")
 
22
  # %% ../02_exp_app.ipynb 7
23
  image = gr.inputs.Image(shape = (192,192))
24
  label = gr.outputs.Label()
25
+ examples = ['seaotter.jpg' , 'riverotter.jpg' , 'stuffedotter.jpg']
26
 
27
  intf = gr.Interface(fn=classify_image, inputs=image,outputs=label,examples=examples)
28
  intf.launch(inline=False)
export.pkl β†’ model.pkl RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e10c6528e60ee2d78f1197ff60aad8c2989e969b49a6249911526b00b1558664
3
- size 46971454
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eeb9ae4ba76e2566c228de2f42e572c086eac1fcf68ef2e2bedf3b2f657cd9d9
3
+ size 46971754
images/riverotter.jpg β†’ riverotter.jpg RENAMED
File without changes
images/seaotter.jpg β†’ seaotter.jpg RENAMED
File without changes
images/stuffedotter.jpg β†’ stuffedotter.jpg RENAMED
File without changes