File size: 606 Bytes
9c446bf
04091cd
9c446bf
36ae9d2
9f0ae6d
04091cd
 
 
1
2
3
4
5
6
7
8
import gradio as gr
import os 

model=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=[ os.path.join(os.path.dirname(__file__), "img1.jpg"), os.path.join(os.path.dirname(__file__),"img2.jpg"),os.path.join(os.path.dirname(__file__), "img3.png") ]) )
"__main__": model.launch()