Spaces:
Runtime error
Runtime error
# 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 | |