Skip to content

Latest commit

 

History

History
68 lines (57 loc) · 1.63 KB

INSTALLATION.md

File metadata and controls

68 lines (57 loc) · 1.63 KB

Installing Drona

  • Prerequisites: Make sure that you have Python 3, virtualenv, and pip installed.

  • Clone the repository

        $ git clone https://github.com/C-Anirudh/Drona.git
        $ cd Drona
    

Setting up Flask Server

  • Create a python 3 virtualenv inside the backend folder, and activate the environment.

        $ cd backend
        $ virtualenv -p python3 venv

    To activate in Linux:

        $ source venv/bin/activate 

    To activate in Windows:

        > venv\Scripts\activate.bat
    

For Linux

  • Run the setup.sh bash script to install dependecies (will prompt for sudo password in the end to install ffmpeg)

        $ ./setup.sh 
  • Start the Flask server

        $ flask run

For Windows

  • Install the project dependencies from requirements.txt
        $ pip install -r requirements.txt
    
  • Install the python pke library
        $ pip install git+https://github.com/boudinfl/pke.git
    
  • Install the spacy en model
        $ python -m spacy download en
    
  • Run setup.py to download additional requirements
        $ python nltk_pack.py 
  • Install ffmpeg
  • Start the Flask server
        $ set FLASK_APP=app.py
        $ flask run
    

Loading the extension in Chrome

  1. Navigate to chrome://extensions
  2. Toggle the Developer mode on the top right corner.
  3. Click on Load unpacked on the top left corner and open the /Drona/extension/ folder to load the extension in Chrome.