Update app.py
Browse files
app.py
CHANGED
@@ -221,12 +221,6 @@ class Detection(NamedTuple):
|
|
221 |
score: float
|
222 |
box: np.ndarray
|
223 |
|
224 |
-
@st.cache_resource # type: ignore
|
225 |
-
def generate_label_colors():
|
226 |
-
return np.random.uniform(0, 255, size=(len(CLASSES), 3))
|
227 |
-
|
228 |
-
|
229 |
-
COLORS = generate_label_colors()
|
230 |
|
231 |
# Angle calculation function
|
232 |
def calculate_angle(a, b, c):
|
|
|
221 |
score: float
|
222 |
box: np.ndarray
|
223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
|
225 |
# Angle calculation function
|
226 |
def calculate_angle(a, b, c):
|