cx_ai_agent_v1 / scripts /run_api.sh
muzakkirhussain011's picture
Add application files (text files only)
8bab08d
raw
history blame contribute delete
336 Bytes
# file: scripts/run_api.sh
#!/bin/bash
# Activate virtual environment if it exists
if [ -d ".venv" ]; then
source .venv/bin/activate
fi
# Set environment variables
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
# Run FastAPI server
echo "Starting FastAPI server on port 8000..."
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000