Coder Social home page Coder Social logo

bnriiitb / chitralekha-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ai4bharat/chitralekha-backend

0.0 0.0 0.0 262 KB

Transcribe your videos and translate it into Indic languages.

Home Page: https://ai4bharat.iitm.ac.in/chitralekha

License: MIT License

Shell 2.18% Python 95.75% Dockerfile 2.07%

chitralekha-backend's Introduction

Chitralekha Backend

Transcribe your videos and translate it into Indic languages.

You can watch a demo of our tool - Video

Setting up the Speech server locally

  1. Clone the repository - git clone --recursive https://github.com/AI4Bharat/chitralekha-backend.git
  2. Change directory - cd pratilipi/speech/api
  3. Make sure you have torch > 1.7 installed
  4. Install fairseq,kenlm,flashlight bash setup.sh
  5. Install dependencies by running pip install -r requirements.txt
  6. Download acoustic and language models -
wget https://storage.googleapis.com/indicwav2vec-public/shared_to_vivek/evW2V_12K_64.pt
wget https://storage.googleapis.com/indicwav2vec-public/shared_to_vivek/lexicon.lst
wget https://storage.googleapis.com/indicwav2vec-public/shared_to_vivek/lm.binary
  1. Change model path in test.json
  2. Run the server using python flask_api.py <cpu/cuda:0> uvicorn main:app --host 0.0.0.0 --port 5000

Setting up the Translation server locally

  1. Clone the repository - git clone --recursive https://github.com/AI4Bharat/pratilipi.git
  2. Install dependencies - bash download_and_setup_translation_models.sh
  3. Fire up the flask server locally - FLASK_APP=api flask run -p 5050 -h 0.0.0.0 uvicorn main:app --host 0.0.0.0 --port 5050

Setting up the Feedback API server locally

  1. Change to the feedback api directory - cd feedback-api
  2. Install dependencies - pip install -r requirements.txt
  3. Fire up the flask server locally - FLASK_APP=api flask run -p 6070 -h 0.0.0.0

Setting up the Frontend server locally

  1. Clone the repository - git clone --recursive https://github.com/AI4Bharat/pratilipi.git
  2. Make sure you are using a python version >= 3.5
  3. Change the api http paths in the following lines in index.html. This step should be done once all the api servers are up and running.
Line numbers - 408, 409, 410
  1. Fire up the HTTP server locally - python -m http.server 8090 -b 0.0.0.0

chitralekha-backend's People

Contributors

dheerajgujral47 avatar gokulnc avatar gowtham1997 avatar nishant-nayak avatar prakharrathi25 avatar sumanthd17 avatar tahirjmakhdoomi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.