Skip to content

OmarKYassin/translate_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translate API

This is a simple API that receives a request containing JSON structured call log and translates the Arabic words into English.


Quick start

To run this application make sure you have docker and docker compose on your machine then run:

git clone https://github.com/OmarKYassin/translate_api.git
cd translate_api
vim .env # You need to add a key with the name `OPENAI_API_KEY` in this file and optionally a key `PORT`
docker-compose up

Endpoint

Path

POST "http://localhost:8080/translate"

Body

[
  { "speaker": "John", "time": "00:00:04", "sentence": "Hello Maria." },
  { "speaker": "Maria", "time": "00:00:09", "sentence": "صباح الخير" }
]

Expected response

[
  { "speaker": "John", "time": "00:00:04", "sentence": "Hello Maria." },
  { "speaker": "Maria", "time": "00:00:09", "sentence": "Good Morning" }
]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published