Spaces:
Runtime error
Runtime error
Ilija Eftimov
commited on
Commit
·
0149bca
1
Parent(s):
31df872
Share=false
Browse files
app.py
CHANGED
@@ -7,7 +7,6 @@ labels = learn.dls.vocab
|
|
7 |
def classify_image(img):
|
8 |
pred, idx, probs = learn.predict(img)
|
9 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
10 |
-
|
11 |
image = gr.inputs.Image(shape=(192,192))
|
12 |
label = gr.outputs.Label()
|
13 |
|
@@ -40,4 +39,4 @@ The notebook used to train the model can be seen [in Google Colab](https://colab
|
|
40 |
"""
|
41 |
|
42 |
iface = gr.Interface(fn=classify_image, inputs=image, outputs=gr.outputs.Label(), examples=examples, title=title, description=description)
|
43 |
-
iface.launch(inline=False, share=
|
|
|
7 |
def classify_image(img):
|
8 |
pred, idx, probs = learn.predict(img)
|
9 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
|
|
10 |
image = gr.inputs.Image(shape=(192,192))
|
11 |
label = gr.outputs.Label()
|
12 |
|
|
|
39 |
"""
|
40 |
|
41 |
iface = gr.Interface(fn=classify_image, inputs=image, outputs=gr.outputs.Label(), examples=examples, title=title, description=description)
|
42 |
+
iface.launch(inline=False, share=False)
|