Spaces:
Sleeping
Sleeping
Kathir
commited on
Commit
·
98aadeb
1
Parent(s):
3e38dac
Added links for other projects
Browse files- __pycache__/model.cpython-310.pyc +0 -0
- app.py +7 -4
__pycache__/model.cpython-310.pyc
ADDED
Binary file (752 Bytes). View file
|
|
app.py
CHANGED
@@ -41,8 +41,10 @@ def predict(img):
|
|
41 |
|
42 |
# creating title, description for the webpage
|
43 |
title = "Birds Classifier 🪶"
|
44 |
-
description = "Classifies an Image of a Bird to any one of the 510 species."
|
45 |
-
|
|
|
|
|
46 |
# creating examples list
|
47 |
examples_list = [["examples/" + img] for img in os.listdir("examples")]
|
48 |
|
@@ -53,8 +55,9 @@ bird_classification = gr.Interface(
|
|
53 |
outputs=gr.Label(num_top_classes=3, label="Prediction"),
|
54 |
examples = examples_list,
|
55 |
title=title,
|
56 |
-
description=description
|
|
|
57 |
)
|
58 |
|
59 |
# launching the web app
|
60 |
-
bird_classification.launch()
|
|
|
41 |
|
42 |
# creating title, description for the webpage
|
43 |
title = "Birds Classifier 🪶"
|
44 |
+
description = "Classifies an Image of a Bird to any one of the [510 species](https://huggingface.co/spaces/Kathir0011/Birds_Classification/blob/main/class_names.txt)."
|
45 |
+
article = "Other Projects:\n"\
|
46 |
+
"💰 [Health Insurance Predictor](http://health-insurance-cost-predictor-k19.streamlit.app/)\n"\
|
47 |
+
"📰 [Fake News Detector](https://fake-news-detector-k19.streamlit.app/)"
|
48 |
# creating examples list
|
49 |
examples_list = [["examples/" + img] for img in os.listdir("examples")]
|
50 |
|
|
|
55 |
outputs=gr.Label(num_top_classes=3, label="Prediction"),
|
56 |
examples = examples_list,
|
57 |
title=title,
|
58 |
+
description=description,
|
59 |
+
article=article
|
60 |
)
|
61 |
|
62 |
# launching the web app
|
63 |
+
bird_classification.launch(debug=True)
|