This is a Flask web application for translating science-related text from English to Bengali using a pre-trained sequence-to-sequence model. Users can sign up, sign in, input text for translation, and download the translated text as a PDF file.
- User authentication: Users can sign up, sign in, and log out securely.
- Translation: Translate English text to Bengali using a pre-trained sequence-to-sequence model.
- PDF generation: Generate and download translated text as a PDF file.
- Input validation: Ensure that users provide valid input for translation.
- Explicit content filtering: Detect and handle explicit or bad words in the input text.
- Flask: Python web framework used for building the application.
- MongoDB: NoSQL database for storing user details and translation history.
- PyTorch: Deep learning library for natural language processing tasks.
- Transformers: Library for state-of-the-art natural language processing models.
- IndicTrans: Library for translating text between English and Indic languages.
- bcrypt: Library for securely hashing passwords.
- pyautogui: Library for taking screenshots.
- img2pdf: Library for converting images to PDF files.
- Clone this repository:
git clone <repository-url> - Set up MongoDB and configure the connection URI in
app.py. - Run the Flask application:
python app.py - Access the application in your web browser at
http://localhost:5000.
- Sign up for an account if you're a new user.
- Sign in using your email and password.
- Input English text you want to translate on the translation page.
- Click the "Translate" button to see the translated text.
- Optionally, click the "Download PDF" button to download the translated text as a PDF file.
- Click the "Logout" button to sign out of your account.