34 lines
597 B
Markdown
34 lines
597 B
Markdown
# Simple Chatbot Server
|
|
|
|
A Pipecat bot.py file that is built to be deployed to Pipecat Cloud.
|
|
|
|
## Environment Variables
|
|
|
|
Copy `env.example` to `.env` and configure:
|
|
|
|
```ini
|
|
OPENAI_API_KEY= # Your OpenAI API key (required for OpenAI bot)
|
|
CARTESIA_API_KEY= # Your Cartesia API key
|
|
```
|
|
|
|
## Running the server locally
|
|
|
|
Set up and activate your virtual environment:
|
|
|
|
```bash
|
|
python3 -m venv venv
|
|
source venv/bin/activate # On Windows: venv\Scripts\activate
|
|
```
|
|
|
|
Install dependencies:
|
|
|
|
```bash
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
Run the server:
|
|
|
|
```bash
|
|
LOCAL_RUN=1 python bot.py
|
|
```
|