Machine Translation Application with mBART50

Folder structure:

/machine-translation-application
├── /backend
│   ├── app.py            # Flask app
│   ├── Dockerfile        # Dockerfile for backend
│   ├── download_model.py # Download mBART model
│   ├── requirements.txt  # Python dependencies
│   └── st_app.py         # Streamlit app
│
├── /frontend
│   ├── /src
│   │   ├── /controllers
│   │   ├── /public
│   │   ├── /routes
│   │   └── index.ts      # Express app
│   │   └── server.ts     # Server
│   │
│   ├── .dockerignore    # Dockerignore for frontend
│   ├── .gitignore       # Gitignore for frontend
│   ├── Dockerfile       # Dockerfile for frontend
│   ├── nodemon.json     # Nodemon config
│   ├── package.json     # Node dependencies
│   └── tsconfig.json    # TypeScript config
│
├── docker-compose.yml   # Docker-compose for frontend and backend
└── README.md            # This file

How to build and run the project:

To run the project locally, you need to have Docker and run the following command:

docker-compose -f docker-compose.yml up

Then, open the browser and go to http://localhost:8333 to use the application.

References: