Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
|
4 |
-
learn = load_learner("
|
5 |
|
6 |
categories = tuple(learn.dls.vocab)
|
7 |
|
@@ -11,9 +11,9 @@ def what_machine(img):
|
|
11 |
|
12 |
image = gr.inputs.Image(shape=(192,192))
|
13 |
label = gr.outputs.Label()
|
14 |
-
examples = ['
|
15 |
-
'
|
16 |
-
'
|
17 |
|
18 |
intf = gr.Interface(fn=what_machine, inputs=image, outputs=label, examples=examples)
|
19 |
intf.launch(inline=False)
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
|
4 |
+
learn = load_learner("what_brew_machine_v1.pkl")
|
5 |
|
6 |
categories = tuple(learn.dls.vocab)
|
7 |
|
|
|
11 |
|
12 |
image = gr.inputs.Image(shape=(192,192))
|
13 |
label = gr.outputs.Label()
|
14 |
+
examples = ['aeropress_go.jpg',
|
15 |
+
'delonghi_espresso.jpg',
|
16 |
+
'moka_pot_red.jpeg']
|
17 |
|
18 |
intf = gr.Interface(fn=what_machine, inputs=image, outputs=label, examples=examples)
|
19 |
intf.launch(inline=False)
|