Linux
Quick install instructions
Warning
python 3.12 is currently not supported.
Dependencies
Installation
git clone https://github.com/vegu-ai/talemate.git
cd talemate
source install.sh
- When asked if you want to install pytorch with CUDA support choose
y
if you have a CUDA compatible Nvidia GPU and have installed the necessary drivers.
- When asked if you want to install pytorch with CUDA support choose
source start.sh
If everything went well, you can proceed to connect a client.
Additional Information
Setting Up a Virtual Environment
- Open a terminal.
- Navigate to the project directory.
- Create a virtual environment by running
python3 -m venv talemate_env
. - Activate the virtual environment by running
source talemate_env/bin/activate
.
Installing Dependencies
- With the virtual environment activated, install poetry by running
pip install poetry
. - Use poetry to install dependencies by running
poetry install
.
Running the Backend
- With the virtual environment activated and dependencies installed, you can start the backend server.
- Navigate to the
src/talemate/server
directory. - Run the server with
python run.py runserver --host 0.0.0.0 --port 5050
.
Running the Frontend
- Navigate to the
talemate_frontend
directory. - If you haven't already, install npm dependencies by running
npm install
. - Start the server with
npm run serve
.
Please note that you may need to set environment variables or modify the host and port as per your setup. You can refer to the runserver.sh
and frontend.sh
files for more details.