haystack-ml-stack 0.2.0__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/PKG-INFO +1 -1
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/pyproject.toml +1 -1
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack/__init__.py +1 -1
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack/app.py +3 -4
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack/dynamo.py +3 -1
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack.egg-info/PKG-INFO +1 -1
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/README.md +0 -0
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/setup.cfg +0 -0
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack/cache.py +0 -0
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack/model_store.py +0 -0
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack/settings.py +0 -0
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack/utils.py +0 -0
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack.egg-info/SOURCES.txt +0 -0
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack.egg-info/dependency_links.txt +0 -0
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack.egg-info/requires.txt +0 -0
- {haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack.egg-info/top_level.txt +0 -0
|
@@ -143,16 +143,15 @@ def create_app(
|
|
|
143
143
|
# Synchronous model execution (user code)
|
|
144
144
|
try:
|
|
145
145
|
preprocess_start = time.perf_counter_ns()
|
|
146
|
+
model["params"]["query_params"] = query_params
|
|
146
147
|
model_input = model["preprocess"](
|
|
147
148
|
user,
|
|
148
149
|
streams,
|
|
149
150
|
playlist,
|
|
150
|
-
|
|
151
|
+
model["params"],
|
|
151
152
|
)
|
|
152
153
|
predict_start = time.perf_counter_ns()
|
|
153
|
-
model_output = model["predict"](
|
|
154
|
-
model_input, {**model.get("params"), "query_params": query_params}
|
|
155
|
-
)
|
|
154
|
+
model_output = model["predict"](model_input, model["params"])
|
|
156
155
|
predict_end = time.perf_counter_ns()
|
|
157
156
|
except Exception as e:
|
|
158
157
|
logger.error("Model prediction failed: %s", e)
|
|
@@ -169,7 +169,9 @@ async def set_stream_features(
|
|
|
169
169
|
features_cache[cache_key] = {
|
|
170
170
|
"value": parsed.get("value"),
|
|
171
171
|
"cache_ttl_in_seconds": int(parsed.get("cache_ttl_in_seconds", -1)),
|
|
172
|
-
"updated_at": datetime.datetime.fromisoformat(
|
|
172
|
+
"updated_at": datetime.datetime.fromisoformat(
|
|
173
|
+
parsed.get("updated_at")
|
|
174
|
+
).replace(tzinfo=None),
|
|
173
175
|
}
|
|
174
176
|
if cache_key in cache_miss:
|
|
175
177
|
cache_miss[cache_key][feature_name] = parsed.get("value")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack.egg-info/requires.txt
RENAMED
|
File without changes
|
{haystack_ml_stack-0.2.0 → haystack_ml_stack-0.2.2}/src/haystack_ml_stack.egg-info/top_level.txt
RENAMED
|
File without changes
|