Skip to content

Bryan1729/nyp-fyp-project

Repository files navigation

NYP FYP CNC Chatbot

Installation and Set-up

  1. Git Clone the repository (Branch: main)

  2. Install Python Version 3.11.9

    1. Open the installer and ensure to check the box (add to PATH) on the bottom of the installer screen.
  3. Once done, open the cloned GitHub repository (in VS Code)

    1. Press Ctrl + Shift + P and search 'Python: Select Interpreter'.
    2. Find and select Python 3.11.9
  4. Install the library dotenv

    Open a terminal ( Command Prompt )

  pip install dotenv
  1. Run the setup.py
  python setup.py
  1. Activate the virtual enviroment

    1. Press Ctrl + Shift + P and search 'Python: Select Interpreter'.
    2. Find and select Python 3.11.9 ('.venv')
  .venv\Scripts\activate
  1. Install the library libmagic
  pip install python-magic
  pip install python-magic-bin

Running the Model Interface (Frontend & Backend)

Run app.py and streamlit_app.py

python app.py
streamlit run streamlit_app.py

Environment Variables

To run this project, you will need to add the following environment variable to your .env file

OPENAI_API_KEY

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages