Spaces:
Runtime error
Runtime error
add description
Browse files
app.py
CHANGED
@@ -35,6 +35,20 @@ def classify_bird(img):
|
|
35 |
|
36 |
image_component = gr.Image(type="pil", label="Bird Image")
|
37 |
label_component = gr.Label(label="Classification result", num_top_classes=3)
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
demo.launch()
|
|
|
35 |
|
36 |
image_component = gr.Image(type="pil", label="Bird Image")
|
37 |
label_component = gr.Label(label="Classification result", num_top_classes=3)
|
38 |
+
description = """
|
39 |
+
## About π€
|
40 |
+
|
41 |
+
Tutorial for deploying a gradio app on huggingface. This was done during a [livestream](https://youtube.com/live/bN9WTxzLBRE) on YouTube.
|
42 |
+
|
43 |
+
## Links π
|
44 |
+
|
45 |
+
π YouTube Livestream: https://youtube.com/live/bN9WTxzLBRE\n
|
46 |
+
π Torchvision Model: https://pytorch.org/hub/nicolalandro_ntsnet-cub200_ntsnet/\n
|
47 |
+
π Paper: http://artelab.dista.uninsubria.it/res/research/papers/2019/2019-IVCNZ-Nawaz-Birds.pdf\n
|
48 |
+
|
49 |
+
"""
|
50 |
+
title = "Bird Classifier π£"
|
51 |
+
|
52 |
+
demo = gr.Interface(fn=classify_bird, inputs=image_component, outputs=label_component, description=description, title=title)
|
53 |
|
54 |
demo.launch()
|