Spaces:
Runtime error
Runtime error
Download app.py from OttoYu/TreeClassificationDemo: direct link, hf CLI and curl.
- Browser
- Download file 606 Bytes
-
https://huggingface.co/spaces/OttoYu/TreeClassificationDemo/resolve/04091cdbce366d8051fb39b4614dcfee6f5171e1/app.py
- Command line
-
hf download hf://spaces/OttoYu/TreeClassificationDemo@04091cdbce366d8051fb39b4614dcfee6f5171e1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/OttoYu/TreeClassificationDemo/resolve/04091cdbce366d8051fb39b4614dcfee6f5171e1/app.py
606 Bytes
| 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() |