LucyintheSky
commited on
Commit
•
4c52049
1
Parent(s):
a533f97
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,10 @@ def classify(img):
|
|
19 |
|
20 |
return result
|
21 |
|
22 |
-
iface = gr.Interface(fn=classify,
|
|
|
23 |
inputs=gr.Image(label='Image', type='filepath'),
|
24 |
-
outputs=gr.Textbox(label='Classification'),
|
|
|
25 |
theme=gr.themes.Base(primary_hue=gr.themes.colors.pink, secondary_hue=gr.themes.colors.gray, neutral_hue=gr.themes.colors.slate, font=["avenir"]))
|
26 |
iface.launch()
|
|
|
19 |
|
20 |
return result
|
21 |
|
22 |
+
iface = gr.Interface(fn=classify,
|
23 |
+
title='Product Photo Classifier',
|
24 |
inputs=gr.Image(label='Image', type='filepath'),
|
25 |
+
outputs=gr.Textbox(label='Classification'),
|
26 |
+
examples=[['./images/1.jpg'],['./images/2.jpg'],['./images/3.jpg']]
|
27 |
theme=gr.themes.Base(primary_hue=gr.themes.colors.pink, secondary_hue=gr.themes.colors.gray, neutral_hue=gr.themes.colors.slate, font=["avenir"]))
|
28 |
iface.launch()
|