A simple web translator powered by chatgpt
This app translates text between many languages. It's able to recognize images and audios, and offers you a set of tools to interact with translated texts.
In this repository we have two projects, one for the web client and another one to deploy a python server which serves an API REST.
- Fork or clone this repository
- Execute the following commands in the root directory to install all dependencies.
cd server
pip install -r requirements.txt
- Set these environment variables:
OPENAI_API_KEY=<openai_api_key>
- Execute the following command to run the server in development mode the app.
uvicorn app:app --reload
- Execute the following commands in the root directory to install all dependencies.
cd client
npm install
- Set these environment variables:
API_HOST=<server_url_here>
- Execute the following command to run the client in development mode the app.
npm run dev
It will run the app in development mode.
Open http://localhost:5173 to view it in your browser.