Spaces:
Sleeping
Sleeping
| echo "π Starting HRHUB..." | |
| echo "" | |
| # Try Python 3.10, then 3.11, then default | |
| if command -v python3.10 &> /dev/null; then | |
| PYTHON_CMD="python3.10" | |
| echo "β Python 3.10 found (Hugging Face compatible)" | |
| elif command -v python3.11 &> /dev/null; then | |
| PYTHON_CMD="python3.11" | |
| echo "β οΈ Python 3.11 found (almost compatible)" | |
| else | |
| PYTHON_CMD="python3" | |
| echo "β οΈ Using default Python: $($PYTHON_CMD --version)" | |
| fi | |
| if [ ! -d "venv" ]; then | |
| echo "π¦ Creating virtual environment with $PYTHON_CMD..." | |
| $PYTHON_CMD -m venv venv | |
| echo "β Virtual environment created" | |
| fi | |
| echo "π Activating virtual environment..." | |
| source venv/bin/activate | |
| echo "π₯ Installing dependencies..." | |
| pip install -r requirements.txt | |
| echo "β Dependencies installed" | |
| echo "" | |
| echo "π Launching Streamlit..." | |
| streamlit run app.py |