harshaUwm163
commited on
Commit
·
b3cf2db
1
Parent(s):
d16a0d4
updated the names of the example files to .jpg instead of .jpeg
Browse files
app.py
CHANGED
@@ -59,9 +59,9 @@ input = gr.inputs.Image(shape=(IMG_SIZE, IMG_SIZE))
|
|
59 |
# the app outputs two segmented images
|
60 |
output = [gr.outputs.Label()]
|
61 |
# it's good practice to pass examples, description and a title to guide users
|
62 |
-
examples = [
|
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=True)
|
67 |
-
gr_interface.launch()
|
|
|
59 |
# the app outputs two segmented images
|
60 |
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=True)
|
67 |
+
gr_interface.launch()
|