OttoYu commited on
Commit
40dc064
·
1 Parent(s): df6e73e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,5 +1,8 @@
1
  import gradio as gr
 
 
2
 
3
  gr.Interface.load("models/OttoYu/TreeClassification",
4
  title="🌳 Tree Classification by Simple machine learning",
5
- description="This web application can identify trees with only one image upload. Since this application is on trial, if you find any errors, please contact [email protected].").launch()
 
 
1
  import gradio as gr
2
+ import torch
3
+ torch.hub.download_url_to_file('https://huggingface.co/spaces/OttoYu/TreeClassificationDemo/blob/main/img1.jpg', 'tree1.jpg')
4
 
5
  gr.Interface.load("models/OttoYu/TreeClassification",
6
  title="🌳 Tree Classification by Simple machine learning",
7
+ description="This web application can identify trees with only one image upload. Since this application is on trial, if you find any errors, please contact [email protected]."
8
+ examples =[[‘img1.jpg’]]).launch()