Spaces:
Sleeping
Sleeping
AI Agent commited on
Commit ·
a760beb
1
Parent(s): c1dd13e
Restore full 10-concept list - safety posters need icon/image/illustration, not just chart/diagram/table
Browse files
app.py
CHANGED
|
@@ -96,10 +96,9 @@ if model_installed:
|
|
| 96 |
print("Model loaded successfully.")
|
| 97 |
|
| 98 |
# Slide specific concepts
|
| 99 |
-
# Temporarily reduced to 3 concepts to run well within Hugging Face's
|
| 100 |
-
# strict 60-second Nginx proxy timeout limit on the Free Tier for 32-bit matrices.
|
| 101 |
SLIDE_CONCEPTS = [
|
| 102 |
-
"chart", "diagram", "table"
|
|
|
|
| 103 |
]
|
| 104 |
|
| 105 |
def mask_iou(m1: np.ndarray, m2: np.ndarray) -> float:
|
|
|
|
| 96 |
print("Model loaded successfully.")
|
| 97 |
|
| 98 |
# Slide specific concepts
|
|
|
|
|
|
|
| 99 |
SLIDE_CONCEPTS = [
|
| 100 |
+
"chart", "diagram", "graph", "table", "icon",
|
| 101 |
+
"logo", "shape", "text block", "image", "illustration"
|
| 102 |
]
|
| 103 |
|
| 104 |
def mask_iou(m1: np.ndarray, m2: np.ndarray) -> float:
|