forked from SPThole/CoexistAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick_setup.sh
More file actions
33 lines (25 loc) · 994 Bytes
/
quick_setup.sh
File metadata and controls
33 lines (25 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/zsh
# Quick Shell Setup for CoexistAI (macOS/zsh)
echo "Pulling SearxNG Docker image..."
docker pull searxng/searxng
# (Optional) Create and activate a Python virtual environment
echo "Creating and activating Python virtual environment..."
python3.13 -m venv coexistaienv
source coexistaienv/bin/activate
pip install 'markitdown[all]'
echo "Setting GOOGLE_API_KEY, add any other keys which you want to store in environment (edit this script to use your real key)"
export GOOGLE_API_KEY=REPLACE_YOUR_API_KEY_HERE_WITHOUT_QUOTES_AND_SPACES
# Spin up the SearxNG Docker container
echo "Starting SearxNG Docker container..."
docker run --rm -d -p 30:8080 \
-v $(pwd)/searxng:/etc/searxng \
-e BASE_URL=http://localhost:30/ \
-e INSTANCE_NAME=my-instance \
searxng/searxng
# Install Python dependencies
echo "Installing Python dependencies..."
pip install -r ./requirements.txt
# 8. Start the FastAPI app
echo "Starting FastAPI app..."
cd . || exit 1
uvicorn app:app --reload