Update app.py
Browse files
app.py
CHANGED
@@ -159,7 +159,12 @@ def predict(img_path):
|
|
159 |
with gr.Blocks(title="Animal Classifier", css=css) as demo:
|
160 |
gr.Markdown("## 🐾 Animal Classifier")
|
161 |
gr.Markdown("Select an image below or upload your own, then click Classify")
|
162 |
-
|
|
|
|
|
|
|
|
|
|
|
163 |
# Store current image path
|
164 |
current_image = gr.State()
|
165 |
|
@@ -176,7 +181,7 @@ with gr.Blocks(title="Animal Classifier", css=css) as demo:
|
|
176 |
value=example_images,
|
177 |
label="Example Images (Click to Select)",
|
178 |
columns=7,
|
179 |
-
height=150,
|
180 |
allow_preview=False,
|
181 |
elem_classes=["centered-examples"]
|
182 |
)
|
|
|
159 |
with gr.Blocks(title="Animal Classifier", css=css) as demo:
|
160 |
gr.Markdown("## 🐾 Animal Classifier")
|
161 |
gr.Markdown("Select an image below or upload your own, then click Classify")
|
162 |
+
gr.Markdown("Trained Classes:
|
163 |
+
'antelope', 'buffalo', 'chimpanzee', 'cow', 'deer', 'dolphin',
|
164 |
+
'elephant', 'fox', 'giant+panda', 'giraffe', 'gorilla', 'grizzlybear',
|
165 |
+
'hamster', 'hippopotamus', 'horse', 'humpbackwhale', 'leopard', 'lion',
|
166 |
+
'moose', 'otter', 'ox', 'pig', 'polarbear', 'rabbit', 'rhinoceros',
|
167 |
+
'seal', 'sheep', 'squirrel', 'tiger', 'zebra'")
|
168 |
# Store current image path
|
169 |
current_image = gr.State()
|
170 |
|
|
|
181 |
value=example_images,
|
182 |
label="Example Images (Click to Select)",
|
183 |
columns=7,
|
184 |
+
#height=150,
|
185 |
allow_preview=False,
|
186 |
elem_classes=["centered-examples"]
|
187 |
)
|