Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -22,7 +22,7 @@ class EndpointHandler:
|
|
| 22 |
# --- OPTIMIZATION: Pre-compute text features from your JSON ---
|
| 23 |
|
| 24 |
# 2. Load your rich class definitions from the file
|
| 25 |
-
with open(f"{path}/
|
| 26 |
class_definitions = json.load(f)
|
| 27 |
|
| 28 |
# 3. Prepare the data for encoding and for the final response
|
|
|
|
| 22 |
# --- OPTIMIZATION: Pre-compute text features from your JSON ---
|
| 23 |
|
| 24 |
# 2. Load your rich class definitions from the file
|
| 25 |
+
with open(f"{path}/items.json", "r", encoding="utf-8") as f:
|
| 26 |
class_definitions = json.load(f)
|
| 27 |
|
| 28 |
# 3. Prepare the data for encoding and for the final response
|