Project from student team of Swinburne University from Vietnam for Sui Typhoon Hackathon :
- Nguyen Ngoc Anh
- Nguyen Thien Phuoc
Welcome to the ArtChain-Chatbot setup guide! This document will walk you through the installation and configuration of the necessary dependencies to get the project up and running.
Before you begin, ensure you have the following:
- Ubuntu (or a similar Linux distribution)
- Administrative privileges (to install packages)
-
Update your package list and install required dependencies:
sudo apt update && sudo apt upgrade -y sudo apt install software-properties-common -y -
Add the deadsnakes PPA (for updated Python versions):
sudo add-apt-repository ppa:deadsnakes/ppa -y sudo apt update
-
Install Python 3.10.6:
sudo apt install python3.10 python3.10-venv python3.10-dev python3.10-distutils -y
-
Verify the installation:
python3.10 --version
-
Install pip for Python 3.10:
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
-
Navigate to your project directory:
cd ~/ArtChain-Chatbot
-
Create a virtual environment:
python3.10 -m venv venv
-
Activate the virtual environment:
source venv/bin/activate Tip: You should see (venv) at the beginning of your terminal prompt, indicating the virtual environment is active.
-
Install the required packages from requirements.txt:
pip install -r requirements.txt
-
If you're using an AMD GPU, install the following additional package:
pip install torch-directml
-
To run the Stable Diffusion API, use the following command:
uvicorn stable_diffusion_api:app --reload
-
To run the AutoGen AI Agent API, use the following command:
uvicorn main:app --port 8001 --reload
npm install
npm install next
npm run dev