Spaces:
Runtime error
Runtime error
Commit
·
f4ffaec
1
Parent(s):
1116f9e
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,8 @@ from sahi.utils.cv import visualize_object_predictions, read_image
|
|
| 5 |
from ultralyticsplus import YOLO, render_result
|
| 6 |
|
| 7 |
# Images
|
| 8 |
-
torch.hub.download_url_to_file('https://huggingface.co/spaces/foduucom/object_detection/
|
| 9 |
-
torch.hub.download_url_to_file('https://huggingface.co/spaces/foduucom/object_detection/
|
| 10 |
|
| 11 |
def yolov8_inference(
|
| 12 |
image: gr.inputs.Image = None,
|
|
|
|
| 5 |
from ultralyticsplus import YOLO, render_result
|
| 6 |
|
| 7 |
# Images
|
| 8 |
+
torch.hub.download_url_to_file('https://huggingface.co/spaces/foduucom/object_detection/samples/1.jpeg', '1.jpeg')
|
| 9 |
+
torch.hub.download_url_to_file('https://huggingface.co/spaces/foduucom/object_detection/samples/2.jpg', '2.JPG')
|
| 10 |
|
| 11 |
def yolov8_inference(
|
| 12 |
image: gr.inputs.Image = None,
|