File size: 574 Bytes
9c446bf
40dc064
 
9c446bf
260fad4
9f0ae6d
40dc064
bc745d2
1
2
3
4
5
6
7
8
import gradio as gr
import torch
torch.hub.download_url_to_file('https://huggingface.co/spaces/OttoYu/TreeClassificationDemo/blob/main/img1.jpg', 'tree1.jpg')

gr.Interface.load("models/OttoYu/TreeClassification",
                           title="🌳 Tree Classification by Simple machine learning",
                           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 exottoyu@gmail.com."
                             examples =[[‘tree1.jpg’]]).launch()