Spaces:
Build error
Build error
File size: 404 Bytes
3022fd1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#!/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
|