0
stars
27
commits
JavaScript
primary language
Nov 23, 2024
updated
This project is a Flask-based web application that allows users to upload images, generate captions for those images, translate the captions into various languages, and create audio narrations of the translated captions.
The application uses a pre-trained VisionEncoderDecoderModel to generate captions for uploaded images and the IndicTrans2 model to translate the captions into multiple languages. The audio narrations are generated using Google Text-to-Speech (gTTS).

png, jpg, or jpeg formats.Clone the repository:
git clone https://github.com/nagajas/DS510-MiniProject2.git
cd DS510-MiniProject2
Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
Clone the IndicTransToolkit for Machine Translation
cd backend
git clone https://github.com/VarunGumma/IndicTransToolkit
python3 -m pip install --editable ./IndicTransToolkit/
Install the required dependencies:
pip install -r requirements.txt
To run the DS510 Mini Project 02 application locally, follow the steps below to set up and start both the backend and frontend components.
cd backend
python app.py
Run the following in a new terminal window to start the frontend server:
cd frontend
npm install
npm start
http://localhost:3000Use the web UI to upload an image, select a target language, and generate the caption, translation, and audio narration.
static/uploads.16MB.The application supports the following languages for translation and audio narration:

You can select the target language from the dropdown menu on the web UI.
DS510-MiniProject2/
├── backend/
│ ├── app.py
│ ├── requirements.txt
│ ├── static/
│ │ └── uploads/
│ └── README.md
├── frontend/
│ ├── public/
│ │ ├── index.html
│ │ └── manifest.json
│ ├── src/
│ │ ├── App.js
│ │ ├── App.css
│ │ ├── index.js
│ │ ├── index.css
│ │ ├── tailwind.config.js
│ │ └── postcss.config.js
│ ├── package.json
│ ├── package-lock.json
│ ├── tailwind.config.js
│ ├── postcss.config.js
│ └── README.md
├── LICENSE
└── README.md
This project is licensed under the MIT License. See the LICENSE file for details.
27 commits
JavaScript
40.0%
Python
33.8%
CSS
18.1%
HTML
8.1%
0
stars
27
commits
JavaScript
primary language
Nov 23, 2024
updated
This project is a Flask-based web application that allows users to upload images, generate captions for those images, translate the captions into various languages, and create audio narrations of the translated captions.
The application uses a pre-trained VisionEncoderDecoderModel to generate captions for uploaded images and the IndicTrans2 model to translate the captions into multiple languages. The audio narrations are generated using Google Text-to-Speech (gTTS).

png, jpg, or jpeg formats.Clone the repository:
git clone https://github.com/nagajas/DS510-MiniProject2.git
cd DS510-MiniProject2
Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
Clone the IndicTransToolkit for Machine Translation
cd backend
git clone https://github.com/VarunGumma/IndicTransToolkit
python3 -m pip install --editable ./IndicTransToolkit/
Install the required dependencies:
pip install -r requirements.txt
To run the DS510 Mini Project 02 application locally, follow the steps below to set up and start both the backend and frontend components.
cd backend
python app.py
Run the following in a new terminal window to start the frontend server:
cd frontend
npm install
npm start
http://localhost:3000Use the web UI to upload an image, select a target language, and generate the caption, translation, and audio narration.
static/uploads.16MB.The application supports the following languages for translation and audio narration:

You can select the target language from the dropdown menu on the web UI.
DS510-MiniProject2/
├── backend/
│ ├── app.py
│ ├── requirements.txt
│ ├── static/
│ │ └── uploads/
│ └── README.md
├── frontend/
│ ├── public/
│ │ ├── index.html
│ │ └── manifest.json
│ ├── src/
│ │ ├── App.js
│ │ ├── App.css
│ │ ├── index.js
│ │ ├── index.css
│ │ ├── tailwind.config.js
│ │ └── postcss.config.js
│ ├── package.json
│ ├── package-lock.json
│ ├── tailwind.config.js
│ ├── postcss.config.js
│ └── README.md
├── LICENSE
└── README.md
This project is licensed under the MIT License. See the LICENSE file for details.
27 commits
JavaScript
40.0%
Python
33.8%
CSS
18.1%
HTML
8.1%