Spaces:
Runtime error
Runtime error
paoyingheng
commited on
Commit
•
fcadaf3
1
Parent(s):
c2ea5c6
update
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from ultralyticsplus import YOLO, render_result
|
|
4 |
|
5 |
torch.hub.download_url_to_file('https://as1.ftcdn.net/v2/jpg/01/85/59/30/1000_F_185593012_ed2xkZFSC9B66fNCBkoURPYht8dwRjJw.jpg', 'one.jpg')
|
6 |
torch.hub.download_url_to_file('https://st4.depositphotos.com/3687893/27930/i/450/depositphotos_279301742-stock-photo-parasite-egg-ascaris-lumbricoides-find.jpg', 'two.jpg')
|
7 |
-
torch.hub.download_url_to_file('https://
|
8 |
|
9 |
def para_func(image: gr.Image = None, image_size: gr.Slider = 640, conf_threshold: gr.Slider = 0.4, iou_threshold: gr.Slider = 0.50):
|
10 |
# model = YOLO('yolov8n.pt') #yolov8 trained model
|
|
|
4 |
|
5 |
torch.hub.download_url_to_file('https://as1.ftcdn.net/v2/jpg/01/85/59/30/1000_F_185593012_ed2xkZFSC9B66fNCBkoURPYht8dwRjJw.jpg', 'one.jpg')
|
6 |
torch.hub.download_url_to_file('https://st4.depositphotos.com/3687893/27930/i/450/depositphotos_279301742-stock-photo-parasite-egg-ascaris-lumbricoides-find.jpg', 'two.jpg')
|
7 |
+
torch.hub.download_url_to_file('https://sanangelo.tamu.edu/files/2021/06/Image_4_whipworm_egg.jpg', 'three.jpg')
|
8 |
|
9 |
def para_func(image: gr.Image = None, image_size: gr.Slider = 640, conf_threshold: gr.Slider = 0.4, iou_threshold: gr.Slider = 0.50):
|
10 |
# model = YOLO('yolov8n.pt') #yolov8 trained model
|