This is a multilingual translation web app built with Streamlit and a pretrained Helsinki-NLP model from Hugging Face. The app allows users to input text in any language and automatically translates it to English.
The app leverages the Helsinki-NLP translation models, which are available in the Hugging Face model hub, offering state-of-the-art performance for machine translation tasks. Whether you're dealing with French, Spanish, German, Chinese, or any other language, this app can quickly translate the text into English.
- Automatic Language Detection: The app detects the language of the input text and translates it into English.
- Supports Multiple Languages: You can input text in multiple languages, and the app will automatically translate to English.
- Simple Interface: The app is built using Streamlit, which offers a clean and simple interface for easy interaction.
- Pretrained Model: Utilizes the Helsinki-NLP multilingual model from Hugging Face for accurate translations.
- Backend: Python
- Libraries:
- Streamlit for building the web app.
- Transformers for integrating the Helsinki-NLP translation model.
- Torch for running the deep learning models.
- Model: Helsinki-NLP's pretrained multilingual translation model from Hugging Face.
To run this app locally, follow these steps:
git clone [https://github.com/your-username/multilingual-translator](https://github.com/Vijay6383/AI-Multilingual-Translater.git)
cd multilingual-translator
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
streamlit run main.py
This will start a local development server and open the app in your web browser.
- Input: Enter the text in any language in the provided text box.
- Translation: The app will automatically detect the language and translate the text into English.
- Result: The translated text will appear in the output box below.
- Input: "Hola, ¿cómo estás?"
- Output: "Hello, how are you?"
This app uses the pretrained Helsinki-NLP translation model available on Hugging Face. Specifically, the opus-mt
models are used for multilingual translation tasks. You can find more information about the model on Hugging Face's Helsinki-NLP Model Page.
- Multiple Language Support: Support for translating between other languages, not just to English.
- Customizable Interface: Allow users to select the target language.
- Optimized Performance: Use faster models or deploy the app on a cloud platform for better scalability.
I welcome contributions! If you'd like to improve the app, feel free to fork the repository and create a pull request. Please ensure that your contributions adhere to the code style and include appropriate tests if necessary.