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()