Closed Fledermaus-20 closed 3 months ago
Thanks for the information. To fix this issue, I installed transformers==4.40.2. However, I will try your suggested solution and see if it works as well. If I have an update on this, I will post it again.
Quick note: It works well with the fork package
Describe the bug
When running the application inside a Docker container, an error occurs related to the torch.isin() method within the transformers library. The error does not occur when running the application locally (outside of the container), suggesting a possible incompatibility or issue with the dependencies inside the Docker container.
To Reproduce
Build the Docker image using the provided Dockerfile.
Dockerfile:
main.py:
Start the Docker container. Make a POST request to the /tts_stream endpoint with the appropriate headers and data. test.py:
CMD:
python test.py --text "This is a Test." --language en --server_url "http://localhost:8001" --stream_chunk_size 145
Expected behavior
No response
Logs
Environment
Additional context
No response