Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,5 @@
|
|
| 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
|
| 8 |
-
examples =[[‘tree1.jpg’]]).launch()
|
|
|
|
| 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 research.ottoyu@gmail.com.").launch()
|
|
|