Spaces:
Sleeping
Sleeping
File size: 997 Bytes
2b6eb12 | 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 | #!/bin/bash
# -------------------------------------------------------------
# Paper Review System - Native Linux Setup Script
# -------------------------------------------------------------
echo "Starting Paper Review System Linux Setup..."
# Install basic dependencies (requires sudo)
if [ -x "$(command -v apt-get)" ]; then
echo "Installing system dependencies..."
sudo apt-get update
sudo apt-get install -y python3-venv python3-pip
elif [ -x "$(command -v dnf)" ]; then
sudo dnf install -y python3-virtualenv python3-pip
fi
# Create Virtual Environment
if [ ! -d ".venv" ]; then
echo "Creating Python virtual environment (.venv)..."
python3 -m venv .venv
fi
# Activate venv and install requirements
echo "Installing Python requirements..."
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
# Ensure models directory exists
mkdir -p local_models
echo ""
echo "Setup Complete!"
echo "To start the application, run: ./run_linux.sh"
|