Harness the power of AI for accurate and efficient translations.
This Streamlit application leverages advanced language models to provide high-quality translations across multiple languages. It goes beyond basic translation by offering features like pronunciation guides, context examples, and detailed word information.
- Advanced AI Translation Engine: Utilizes state-of-the-art language models (OpenAI, Anthropic, Google PaLM, etc.) for accurate translations.
- Multi-Language Support: Translate between a wide array of languages with ease.
- Pronunciation Assistance: Get phonetic pronunciations for translated words.
- Contextual Examples: See how translations are used in context for better understanding.
- Word Details: For single words, explore in-depth information, including definitions, parts of speech, etymology, and more.
- Translation History: Keep track of your past translations for reference.
- User-Friendly Interface: Intuitive and easy-to-use design for a seamless translation experience.
- Customizable: Select your preferred language model provider and configure settings.
- Fallback Provider: Option to set up a fallback provider for uninterrupted translations.
-
Clone the repository:
git clone https://github.com/abdalrohman/Ai-Translator cd Ai-Translator
-
Install dependencies:
pip install -r requirements.txt
-
Set up API keys:
- Rename
.env-example
file into.env
in the project root directory. - Obtain API keys for your chosen language model providers (e.g., OpenAI, Anthropic, Google).
- Add the API keys to the
.env
file.
- Rename
-
Run the application:
streamlit run app.py
- Select your language model provider and model in the sidebar settings.
- Choose the target language from the dropdown.
- Enter the phrase or word you want to translate in the text area.
- Click "Translate" to get your translation.
- Explore the translation details, including pronunciation, confidence score, and more.
- Review your translation history below the main translation area.
Contributions are welcome! Feel free to open issues or submit pull requests to enhance this project.
This project is licensed under the MIT License.
- Streamlit - for the amazing framework for building interactive web applications.
- Langchain - for simplifying the integration with language models.