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)
- Download/clone this github repository "AI_Casting_Dir"
- Download models and embeddings from https://drive.google.com/file/d/1aHZnhTvxB8SFoQxEiViLMtevg3maqTqi/view?usp=sharing
- Unzip the supplement file. You should see five folders. Move them into the "AI_Casting_Dir" folder.
-
Open a terminal window.
-
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.
- 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
- Activate the virtual environment.
. venv/bin/activate
- 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.
- Open a browser window and go to http://127.0.0.1:5000/. You should be able to run the project now.
-
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