The AI Translator Application is a powerful and user-friendly tool that leverages the T5 large language model, trained with 223 million parameters, to provide high-quality translations. The backend is built using Flask and the HuggingFace Transformers pipeline, while the frontend is a React application styled with Tailwind CSS and DaisyUI.
Fork the repository.
Clone the repository:
git clone https://github.com/your-username/AI_Translator.git
cd AI_Translator/backend
Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
Install the required packages:
pip install -r requirements.txt
Start the Flask server:
flask run
Navigate to the frontend directory:
cd ../frontend
Install the dependencies:
npm install
Start the React application:
npm start
http://localhost:3000
to use the frontend application./
POST
{
"task": "translation_en_to_fr",
"prompt": "Hello!"
}
{
"response": "Bonjour!"
}
Contributions are welcome! Please fork this repository and submit a pull request for any enhancements, bug fixes, or new features.