harshaUwm163
commited on
Commit
•
fa6a5e6
1
Parent(s):
29a1c97
updated the description with the classes information. [Also downloaded a car example]
Browse files- app.py +5 -1
- content/examples/car.jpg +0 -0
app.py
CHANGED
@@ -61,7 +61,11 @@ output = [gr.outputs.Label()]
|
|
61 |
# it's good practice to pass examples, description and a title to guide users
|
62 |
examples = [["./content/examples/Frog.jpg"], ["./content/examples/Truck.jpg"]]
|
63 |
title = "Image classification"
|
64 |
-
description = "Upload an image or select from examples to classify it"
|
65 |
|
66 |
gr_interface = gr.Interface(infer, input, output, examples=examples, allow_flagging=False, analytics_enabled=False, title=title, description=description).launch(enable_queue=True, debug=False)
|
67 |
gr_interface.launch()
|
|
|
|
|
|
|
|
|
|
61 |
# it's good practice to pass examples, description and a title to guide users
|
62 |
examples = [["./content/examples/Frog.jpg"], ["./content/examples/Truck.jpg"]]
|
63 |
title = "Image classification"
|
64 |
+
description = "Upload an image or select from examples to classify it. The allowed classes are - Airplane, Automobile, Bird, Cat, Deer, Dog, Frog, Horse, Ship, Truck"
|
65 |
|
66 |
gr_interface = gr.Interface(infer, input, output, examples=examples, allow_flagging=False, analytics_enabled=False, title=title, description=description).launch(enable_queue=True, debug=False)
|
67 |
gr_interface.launch()
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
+
|
content/examples/car.jpg
ADDED