zachwormgoor@gmail.com
commited on
Commit
•
6f50425
1
Parent(s):
59987aa
three more examples
Browse files- app.py +14 -2
- combine-stock.jpg +0 -0
- glasses-amateur.jpg +0 -0
- washing-machine-stock.jpg +0 -0
app.py
CHANGED
@@ -57,15 +57,27 @@ def classify_image(img):
|
|
57 |
|
58 |
image = gr.inputs.Image(shape=(192, 192))
|
59 |
label = gr.outputs.Label()
|
60 |
-
examples = ['stock.jpg', 'stock2.jpg', 'stock-easy.jpg', 'stock-easy2.jpg', 'amateur.jpg', 'amateur2.jpg', 'amateur-easy.jpg', 'amateur-easy2.jpg', 'unsure.jpg']
|
61 |
# stock: https://cdn.pixabay.com/photo/2022/02/11/12/12/pforphoto-7007231_1280.jpg
|
62 |
# stock2: https://cdn.pixabay.com/photo/2019/09/25/13/57/business-4503747_960_720.jpg
|
63 |
# stock-easy: https://scienceline.org/wp-content/uploads/2015/10/apple-926456_1280.jpg
|
64 |
# stock-easy2: https://ph-files.imgix.net/6b5cb0af-8bef-4700-b35f-8576e0ec58d8.jpeg?auto=format&fit=crop&frame=1&h=512&w=1024
|
|
|
|
|
|
|
65 |
# amateur: https://cimg3.ibsrv.net/cimg/www.honda-tech.com/1024x768_85/479/AAApril-2-Control-Arms-01-58479.jpg
|
66 |
# amateur2: https://www.iflash.xyz/images/diyMod/img7.jpg
|
67 |
# unsure: https://en.wikipedia.org/wiki/Joshua_Bean
|
68 |
|
69 |
|
70 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
71 |
-
intf.launch(inline=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
image = gr.inputs.Image(shape=(192, 192))
|
59 |
label = gr.outputs.Label()
|
60 |
+
examples = ['stock.jpg', 'stock2.jpg', 'stock-easy.jpg', 'stock-easy2.jpg', 'combine-stock.jpg', 'washing-machine-stock.jpg', 'glasses-amateur.jpg', 'amateur.jpg', 'amateur2.jpg', 'amateur-easy.jpg', 'amateur-easy2.jpg', 'unsure.jpg']
|
61 |
# stock: https://cdn.pixabay.com/photo/2022/02/11/12/12/pforphoto-7007231_1280.jpg
|
62 |
# stock2: https://cdn.pixabay.com/photo/2019/09/25/13/57/business-4503747_960_720.jpg
|
63 |
# stock-easy: https://scienceline.org/wp-content/uploads/2015/10/apple-926456_1280.jpg
|
64 |
# stock-easy2: https://ph-files.imgix.net/6b5cb0af-8bef-4700-b35f-8576e0ec58d8.jpeg?auto=format&fit=crop&frame=1&h=512&w=1024
|
65 |
+
# washing-machine-stock: https://live.staticflickr.com/7313/12775521983_e0a67aeb86_n.jpg
|
66 |
+
# combine-stock: https://live.staticflickr.com/5765/22059912468_ec5c315be4_b.jpg
|
67 |
+
# glasses-amateur: http://2.bp.blogspot.com/-dpygWXrSzRo/VfiIfzsWuxI/AAAAAAAAGvc/SNLnjV-IzO4/s1600/Green%2BTea%2Band%2BOrange%2BCollard%2BRecipe.jpg
|
68 |
# amateur: https://cimg3.ibsrv.net/cimg/www.honda-tech.com/1024x768_85/479/AAApril-2-Control-Arms-01-58479.jpg
|
69 |
# amateur2: https://www.iflash.xyz/images/diyMod/img7.jpg
|
70 |
# unsure: https://en.wikipedia.org/wiki/Joshua_Bean
|
71 |
|
72 |
|
73 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
74 |
+
intf.launch(inline=False)
|
75 |
+
|
76 |
+
|
77 |
+
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
+
|
82 |
+
|
83 |
+
|
combine-stock.jpg
ADDED
glasses-amateur.jpg
ADDED
washing-machine-stock.jpg
ADDED