Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,8 @@ def classify_image(img):
|
|
25 |
image = gr.inputs.Image(shape=(224, 224))
|
26 |
label = gr.outputs.Label()
|
27 |
examples = ['black-bear.jpg', 'grizzly-bear.jpg', 'teddy-bear.jpg']
|
|
|
|
|
28 |
|
29 |
-
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
30 |
intf.launch(inline=False)
|
|
|
25 |
image = gr.inputs.Image(shape=(224, 224))
|
26 |
label = gr.outputs.Label()
|
27 |
examples = ['black-bear.jpg', 'grizzly-bear.jpg', 'teddy-bear.jpg']
|
28 |
+
title = "Bear Classification"
|
29 |
+
description = "To classify a bear, simply upload your image, or click one of the examples to load them. Please use a cropped portrait picture for best results similar to the examples below."
|
30 |
|
31 |
+
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples, title=title, description=description)
|
32 |
intf.launch(inline=False)
|