Skip to content

A text translations which uses the power of chatgpt to o provide near-perfect translations of texts.

License

Notifications You must be signed in to change notification settings

WilerMS/AITranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Translator

A simple web translator powered by chatgpt

Table of contents:

Description

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.

Installation guide

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.

  1. Fork or clone this repository

Initialize server

  1. Execute the following commands in the root directory to install all dependencies.
cd server
pip install -r requirements.txt
  1. Set these environment variables:
OPENAI_API_KEY=<openai_api_key>
  1. Execute the following command to run the server in development mode the app.
uvicorn app:app --reload

Initialize client

  1. Execute the following commands in the root directory to install all dependencies.
cd client
npm install
  1. Set these environment variables:
API_HOST=<server_url_here>
  1. 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.

About

A text translations which uses the power of chatgpt to o provide near-perfect translations of texts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published