-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_webapp.sh
More file actions
40 lines (34 loc) · 1.22 KB
/
start_webapp.sh
File metadata and controls
40 lines (34 loc) · 1.22 KB
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
# Start Streamlit Web Application
# LinkedIn Sourcing Agent - Professional Web Interface
echo "🎯 Starting LinkedIn Sourcing Agent Web Application..."
echo "======================================================="
# Check if virtual environment is activated
if [[ "$VIRTUAL_ENV" != "" ]]; then
echo "✅ Virtual environment detected: $VIRTUAL_ENV"
else
echo "⚠️ Warning: No virtual environment detected"
echo " Consider activating your virtual environment first:"
echo " source venv/bin/activate"
fi
# Check if dependencies are installed
echo "📦 Checking dependencies..."
python -c "import streamlit, plotly, pandas" 2>/dev/null
if [ $? -eq 0 ]; then
echo "✅ Core dependencies found"
else
echo "❌ Missing dependencies. Installing..."
pip install streamlit plotly pandas
fi
# Set environment variables for demo mode
export STREAMLIT_SERVER_PORT=8501
export STREAMLIT_SERVER_ADDRESS=0.0.0.0
echo ""
echo "🚀 Launching Streamlit application..."
echo " URL: http://localhost:8501"
echo " Docs: Check the sidebar for help"
echo ""
echo "Press Ctrl+C to stop the server"
echo "======================================================="
# Start Streamlit
streamlit run streamlit_app.py