Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 exottoyu@gmail.com."
|
|
|
|
|
|
| 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 exottoyu@gmail.com."
|
| 8 |
+
examples =[[‘img1.jpg’]]).launch()
|