Spaces:
Sleeping
Sleeping
Update app.py
Browse filesadd drop down list
app.py
CHANGED
@@ -56,12 +56,14 @@ else:
|
|
56 |
# Gradio Interface
|
57 |
examples = [[examples_path + "/" + img] for img in os.listdir(examples_path)]
|
58 |
|
59 |
-
demo = gr.Interface(
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
|
|
|
|
66 |
|
67 |
demo.launch()
|
|
|
56 |
# Gradio Interface
|
57 |
examples = [[examples_path + "/" + img] for img in os.listdir(examples_path)]
|
58 |
|
59 |
+
demo = gr.Interface(
|
60 |
+
fn=classify_image,
|
61 |
+
inputs=[gr.Image(type="pil"), dropdown], # drop down list
|
62 |
+
outputs=[gr.Label(num_top_classes=3, label="Top 3 Predictions")],
|
63 |
+
examples=examples,
|
64 |
+
title='Oxford Pet ππ',
|
65 |
+
description='A ResNet50-based model for classifying 37 different pet breeds.',
|
66 |
+
article='[Oxford Project](https://github.com/Eric-Chung-0511/Learning-Record/tree/main/Data%20Science%20Projects/The%20Oxford-IIIT%20Pet%20Project)'
|
67 |
+
)
|
68 |
|
69 |
demo.launch()
|