This is a Streamlit application for language translation and grammar correction using Hugging Face's Transformers library. The app allows users to translate text between multiple languages and correct grammar in English sentences.
- Translate text between Arabic, English, Russian, and Chinese.
- Correct grammatical errors in English text.
- User-friendly interface with dropdown menus for language selection.
- Streamlit
- Hugging Face Transformers
- PyTorch
- ngrok (for tunneling)
To run this application, you need to install the required packages. You can do this by running:
pip install -r requirements.txtClone the repository:
git clone https://github.com/NaMN21/Huggingface_Language.git
cd Huggingface_Languagestreamlit run app.py ngrok http 8501Access the app using the provided ngrok URL.
Enter text in the input field.
Select the task (Translation or Grammar Correction).
Choose the source and target languages for translation.
Click the "Submit" button to see the results.
Contributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.
This project is licensed under the MIT License