Skip to content

Using the OpenSource AI model, created python application that gives API to fetch the localisation for given word/text in given locale

Notifications You must be signed in to change notification settings

saiprasaddevare/localize_ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Intelligent Translations System

Local Setup for development

  • Clone the repository from the github.

  • Create python env for the project.

  • Create Env outside of this repo, since this is specific to your system.

  • Creating Env one folder back of this repository.

    cd ..

    python3 -m venv .

    source bin/activate

  • Install all the packages, navigate to your clone repo.

    pip3 install -r ./src/requirements.txt

  • Run the python application

    python3 src/app.py

  • Test

    GET http://localhost:8080/translate?text=Hello&source_lang=en&target_lang=hi

  • To stop and deactive the Env

    use ctrl + c

    deactive

Use of docker for local setup

  • Use below command to create docker image

    docker build -t flask-translate-app .

  • Run the docker container

    docker run -p 8080:8080 flask-translate-app

  • Test

    GET http://localhost:8080/translate?text=Hello&source_lang=en&target_lang=hi

About

Using the OpenSource AI model, created python application that gives API to fetch the localisation for given word/text in given locale

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published