jerpint commited on
Commit
ae37634
β€’
1 Parent(s): 41f6fd9

add description

Browse files
Files changed (1) hide show
  1. app.py +15 -1
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
- demo = gr.Interface(fn=classify_bird, inputs=image_component, outputs=label_component)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()