Spaces:
Sleeping
Sleeping
Matej
commited on
Commit
•
87f72b7
1
Parent(s):
0e4d3e5
add examples
Browse files- examples/club_sandwich.jpg +0 -0
- examples/edamame.jpg +0 -0
- examples/eggs_benedict.jpg +0 -0
- my_app.py +3 -1
examples/club_sandwich.jpg
ADDED
examples/edamame.jpg
ADDED
examples/eggs_benedict.jpg
ADDED
my_app.py
CHANGED
@@ -22,6 +22,7 @@ This model is based on the EfficientNetB0 architecture and was trained on the Fo
|
|
22 |
|
23 |
#This model is based on the EfficientNetB0 architecture and was trained on augmented data, providing improved generalization.
|
24 |
#"""
|
|
|
25 |
|
26 |
def preprocess(image):
|
27 |
print("before resize", image.shape)
|
@@ -53,6 +54,7 @@ iface = gr.Interface(
|
|
53 |
outputs=[gr.Label(num_top_classes=5)],
|
54 |
title="Food Vision Mini Project",
|
55 |
description=f"{model1_info}\n",
|
|
|
56 |
)
|
57 |
|
58 |
-
iface.launch()
|
|
|
22 |
|
23 |
#This model is based on the EfficientNetB0 architecture and was trained on augmented data, providing improved generalization.
|
24 |
#"""
|
25 |
+
examples = [["./examples/club_sandwich.jpg"], ["./examples/edamame.jpg"], ["./examples/dandelion.jpg"], ["./examples/eggs_benedict.jpg"]]
|
26 |
|
27 |
def preprocess(image):
|
28 |
print("before resize", image.shape)
|
|
|
54 |
outputs=[gr.Label(num_top_classes=5)],
|
55 |
title="Food Vision Mini Project",
|
56 |
description=f"{model1_info}\n",
|
57 |
+
examples=examples
|
58 |
)
|
59 |
|
60 |
+
iface.launch(enable_queue=True)
|