fhswf / tagflip-autonlp

Automate NLP tasks
https://autonlp.informatik.fh-swf.de
MIT License
3 stars 2 forks source link

Predict fails in text classification deployment #13

Closed cgawron closed 2 years ago

cgawron commented 2 years ago

This is the error message returned by Postman:

Traceback (most recent call last):  
File "/miniconda/envs/custom_env/lib/python3.8/site-packages/mlflow/pyfunc/scoring_server/__init__.py", line 264, in transformation
    raw_predictions = model.predict(data)
File "/miniconda/envs/custom_env/lib/python3.8/site-packages/mlflow/pyfunc/__init__.py", line 596, in predict
    return self._model_impl.predict(data)
File "/miniconda/envs/custom_env/lib/python3.8/site-packages/mlflow/pyfunc/model.py", line 257, in predict
    return self.python_model.predict(self.context, model_input)
File "/workspace/src/tagflip/packages/auto-nlp-workflow-lib/src/tagflip/model/mlflow/huggingface/huggingface_sequenceclassification_savable.py", line 96, in predict
NameError: name 'pipe' is not defined\n