Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,10 @@ def classify_image(img):
|
|
| 8 |
pred,idx,probs = learn.predict(img)
|
| 9 |
return dict(zip(categories, map(float,probs)))
|
| 10 |
|
|
|
|
| 11 |
image = gr.Image(shape=(192,192))
|
| 12 |
label = gr.Label()
|
| 13 |
examples = ['grizzly.jpg', 'black.jpg', 'teddy.jpg']
|
| 14 |
|
| 15 |
-
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples = examples)
|
| 16 |
intf.launch(inline=False)
|
|
|
|
| 8 |
pred,idx,probs = learn.predict(img)
|
| 9 |
return dict(zip(categories, map(float,probs)))
|
| 10 |
|
| 11 |
+
title = "Bear Classifier"
|
| 12 |
image = gr.Image(shape=(192,192))
|
| 13 |
label = gr.Label()
|
| 14 |
examples = ['grizzly.jpg', 'black.jpg', 'teddy.jpg']
|
| 15 |
|
| 16 |
+
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples = examples, title=title)
|
| 17 |
intf.launch(inline=False)
|