Spaces:
Paused
Paused
Commit
·
e23e38c
1
Parent(s):
6c540bc
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ from fastai.vision.widgets import ImageClassifierCleaner
|
|
| 20 |
import gradio as gr
|
| 21 |
|
| 22 |
# %% app.ipynb 2
|
| 23 |
-
learn = load_learner('model.pkl')
|
| 24 |
|
| 25 |
# %% app.ipynb 3
|
| 26 |
categories=('bird','forest')
|
|
@@ -33,8 +33,7 @@ def classify_image(img):
|
|
| 33 |
# %% app.ipynb 4
|
| 34 |
image=gr.inputs.Image(shape=(192,192))
|
| 35 |
label=gr.outputs.Label()
|
| 36 |
-
examples=['
|
| 37 |
-
,'imagesExample/e.jpg','imagesExample/f.jpg','imagesExample/g.jpg']
|
| 38 |
|
| 39 |
interface=gr.Interface(fn=classify_image, inputs=image ,outputs=label,examples=examples)
|
| 40 |
interface.launch(inline=False)
|
|
|
|
| 20 |
import gradio as gr
|
| 21 |
|
| 22 |
# %% app.ipynb 2
|
| 23 |
+
learn = load_learner('./model.pkl')
|
| 24 |
|
| 25 |
# %% app.ipynb 3
|
| 26 |
categories=('bird','forest')
|
|
|
|
| 33 |
# %% app.ipynb 4
|
| 34 |
image=gr.inputs.Image(shape=(192,192))
|
| 35 |
label=gr.outputs.Label()
|
| 36 |
+
examples=['a.jpg', 'b.jpg','c.jpg','d.jpg']
|
|
|
|
| 37 |
|
| 38 |
interface=gr.Interface(fn=classify_image, inputs=image ,outputs=label,examples=examples)
|
| 39 |
interface.launch(inline=False)
|