Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.59 KB

README.md

File metadata and controls

54 lines (38 loc) · 1.59 KB

AI_Casting_Dir

Make sure you have python3 installed. If not, go to https://www.python.org/downloads/ and download the 3.7/3.8 installer. (DO NOT download the latest 3.9 version)

Step 1: Download files

  1. Download/clone this github repository "AI_Casting_Dir"
  2. Download models and embeddings from https://drive.google.com/file/d/1aHZnhTvxB8SFoQxEiViLMtevg3maqTqi/view?usp=sharing
  3. Unzip the supplement file. You should see five folders. Move them into the "AI_Casting_Dir" folder.

Step 2: Set up the environment

  1. Open a terminal window.

  2. Drag the file named "setup.sh" into your terminal. You should see the path to the file. Hit enter.

{{path}}/AI_Casting_Dir/setup.sh 

This will start installing all the packages needed to run the project in a virtual environment.

Step 3: Run

  1. After the installation finishes, go to the "AI_Casting_Dir" folder by using this command line. The {{path}} here should be the same as above.
cd {{path}}/AI_Casting_Dir
  1. Activate the virtual environment.
. venv/bin/activate
  1. Run the main python script.
python3 main.py

This will start the server. Wait for a few minutes until you see "Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)" in the terminal.

  1. Open a browser window and go to http://127.0.0.1:5000/. You should be able to run the project now.

Step 4: Stop / Restart

  • To stop the server, press Ctrl + C.

  • To restart the server, press Ctrl + C and run the main script again.

python3 main.py
  • To deactivate the virtual env, use:
deactivate