Spaces:
Sleeping
Sleeping
Commit Β·
debda80
1
Parent(s): b39d5ba
created model in linux
Browse files- .gitignore +4 -1
- app.py +2 -2
- export.pkl β model.pkl +2 -2
- images/riverotter.jpg β riverotter.jpg +0 -0
- images/seaotter.jpg β seaotter.jpg +0 -0
- images/stuffedotter.jpg β stuffedotter.jpg +0 -0
.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('
|
| 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 = ['
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 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
|