npx hurl --test --variable host="http://192.168.128.151:49297" services/sciencemetrix-classification/tests.hurl
services/sciencemetrix-classification/tests.hurl: Running [1/1]
error: Assert status code
--> services/sciencemetrix-classification/tests.hurl:9:6
|
9 | HTTP 200
| ^^^ actual value is <400>
|
services/sciencemetrix-classification/tests.hurl: Failure (1 request(s) in 1197 ms)
--------------------------------------------------------------------------------
Executed files: 1
Succeeded files: 0 (0.0%)
Failed files: 1 (100.0%)
Duration: 1198 ms
Log:
Traceback (most recent call last):
File "/app/public/./v1/classif.py", line 40, in <module>
prediction = model.predict(resume)
File "/usr/local/lib/python3.9/site-packages/fasttext/FastText.py", line 232, in predict
return labels, np.array(probs, copy=False)
ValueError: Unable to avoid copy while creating an array as requested.
If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x).
For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.
Test:
Log: