snikhilesh's picture
Upload folder using huggingface_hub
023df37 verified
raw
history blame
817 Bytes
#!/bin/bash
# Medical Report Analysis Platform - Deployment Script for Hugging Face Spaces
echo "Medical Report Analysis Platform - Deployment Setup"
echo "=================================================="
# Install system dependencies
echo "Installing system dependencies..."
apt-get update
apt-get install -y tesseract-ocr poppler-utils libgl1-mesa-glx libglib2.0-0
# Install Python dependencies
echo "Installing Python dependencies..."
pip install -r backend/requirements.txt
# Copy frontend build to static directory
echo "Setting up frontend..."
mkdir -p backend/static
cp -r medical-ai-frontend/dist/* backend/static/
# Set environment variables
export PORT=7860
export PYTHONUNBUFFERED=1
echo "Setup complete!"
echo "Starting Medical AI Platform..."
# Start the application
cd backend
python main.py