Spaces:
Runtime error
Runtime error
File size: 474 Bytes
60444f3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#!/bin/bash
# Startup script for Hugging Face Spaces deployment
# Create necessary directories if they don't exist
mkdir -p /app/qdrant_data
mkdir -p /app/config
# Set proper permissions
chmod -R 755 /app/qdrant_data
chmod -R 755 /app/config
# Initialize empty config if it doesn't exist
if [ ! -f /app/config/folders.json ]; then
echo "[]" > /app/config/folders.json
fi
# Start the application
exec python -m uvicorn app:app --host 0.0.0.0 --port 7860 --workers 1
|