This project demonstrates how to use the LangChain OpenAI API to translate text from English to Polish.
- Python 3.7 or higher
- Poetry for dependency management
-
Clone the repository:
git clone https://github.com/musictechlab/mtl-langchain mtl-langchain cd mtl-langchain -
Install dependencies using Poetry:
poetry install
-
Create a
.envfile in the root directory of the project and add your OpenAI API key:OPENAI_API_KEY=your_openai_api_key
To run the script, use the following command:
poetry run python main.py