haystack-ml-stack 0.2.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haystack-ml-stack
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Functions related to Haystack ML
5
5
  Author-email: Oscar Vega <oscar@haystack.tv>
6
6
  License: MIT
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "haystack-ml-stack"
8
- version = "0.2.1"
8
+ version = "0.2.2"
9
9
  description = "Functions related to Haystack ML"
10
10
  readme = "README.md"
11
11
  authors = [{ name = "Oscar Vega", email = "oscar@haystack.tv" }]
@@ -1,4 +1,4 @@
1
1
  from .app import create_app
2
2
 
3
3
  __all__ = ["create_app"]
4
- __version__ = "0.2.1"
4
+ __version__ = "0.2.2"
@@ -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
- {**model.get("params"), "query_params": query_params},
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haystack-ml-stack
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Functions related to Haystack ML
5
5
  Author-email: Oscar Vega <oscar@haystack.tv>
6
6
  License: MIT