Spaces:
Runtime error
Runtime error
iammartian0
commited on
Commit
•
0e914bc
1
Parent(s):
a934642
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,8 @@ def classify_img(image):
|
|
13 |
|
14 |
image = gr.inputs.Image(shape=(192,192))
|
15 |
label = gr.outputs.Label()
|
16 |
-
examples = ['cat.jpg','food.jpg','
|
17 |
-
|
|
|
|
|
18 |
intf.launch(inline=False)
|
|
|
13 |
|
14 |
image = gr.inputs.Image(shape=(192,192))
|
15 |
label = gr.outputs.Label()
|
16 |
+
examples = ['cat.jpg','food.jpg','tiger.jpg','cat_dog.jpg']
|
17 |
+
title = 'Simple classifier'
|
18 |
+
description = 'The model classifies input images into Dog, Cat, Lion, Tiger, Wolf classes. If the input image is not in target class, it is classified as None'
|
19 |
+
intf = gr.Interface(fn=classify_img, inputs=image, outputs=label,title=title,description=description,examples=examples)
|
20 |
intf.launch(inline=False)
|