Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -11,6 +11,9 @@ from utils import tts, read_image_file, pil_to_base64, get_hist
|
|
| 11 |
from typing import Optional
|
| 12 |
from huggingface_hub import hf_hub_download
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
model_path = hf_hub_download(repo_id="ultralyticsplus/yolov8s", filename='yolov8s.pt')
|
| 15 |
model = YOLO(model_path)
|
| 16 |
CLASS = model.model.names
|
|
|
|
| 11 |
from typing import Optional
|
| 12 |
from huggingface_hub import hf_hub_download
|
| 13 |
|
| 14 |
+
from io import BytesIO
|
| 15 |
+
import zipfile
|
| 16 |
+
|
| 17 |
model_path = hf_hub_download(repo_id="ultralyticsplus/yolov8s", filename='yolov8s.pt')
|
| 18 |
model = YOLO(model_path)
|
| 19 |
CLASS = model.model.names
|