-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·40 lines (30 loc) · 1015 Bytes
/
run.sh
File metadata and controls
executable file
·40 lines (30 loc) · 1015 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
34
35
36
37
38
39
40
#!/bin/bash
# Run Document Chat & Summary Application
echo "🚀 Starting Document Chat & Summary Tool"
echo "========================================"
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "📦 Creating virtual environment..."
python -m venv venv
fi
# Activate virtual environment
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install backend dependencies
echo "📥 Installing backend dependencies..."
cd backend && pip install -r requirements.txt
# Install frontend dependencies
echo "📥 Installing frontend dependencies..."
cd ../frontend && pip install -r requirements.txt
# Start backend in background
echo "⚡ Starting FastAPI backend..."
cd ../backend && python3 main.py &
BACKEND_PID=$!
# Wait for backend to start
echo "⏳ Waiting for backend to initialize..."
sleep 5
# Start frontend
echo "🎨 Starting Streamlit frontend..."
cd ../frontend && streamlit run app.py
# Cleanup on exit
echo "🛑 Shutting down..."
kill $BACKEND_PID