Spaces:
Paused
Paused
Zhen Ye
commited on
Commit
·
90f0a6b
1
Parent(s):
68bac29
fix: Import Full/Empty from queue to prevent NameError on backpressure
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -7,7 +7,7 @@ if "CUDA_VISIBLE_DEVICES" in os.environ:
|
|
| 7 |
import logging
|
| 8 |
import time
|
| 9 |
from threading import RLock, Thread
|
| 10 |
-
from queue import Queue, PriorityQueue
|
| 11 |
from typing import Any, Dict, List, Optional, Sequence, Tuple
|
| 12 |
|
| 13 |
import cv2
|
|
|
|
| 7 |
import logging
|
| 8 |
import time
|
| 9 |
from threading import RLock, Thread
|
| 10 |
+
from queue import Queue, PriorityQueue, Full, Empty
|
| 11 |
from typing import Any, Dict, List, Optional, Sequence, Tuple
|
| 12 |
|
| 13 |
import cv2
|