bluewhale2025's picture
Initial commit: Add ParseAI document processor application
3022fd1
raw
history blame contribute delete
404 Bytes
#!/bin/bash
set -e
# Create necessary directories
mkdir -p /app/data/uploads
mkdir -p /app/nltk_data
mkdir -p /app/huggingface_cache
# Set permissions
chown -R 1000:1000 /app
chmod -R 755 /app
# Download NLTK data if not present
if [ ! -d "/app/nltk_data/tokenizers" ]; then
echo "Downloading NLTK data..."
python /app/download_nltk_data.py
fi
# Start the application
exec python /app/app.py