UpscaleStudioAPI / start.sh
Semnykcz's picture
Update start.sh
e190a5f verified
raw
history blame contribute delete
338 Bytes
#!/bin/bash
# Start script for Hugging Face Spaces
echo "πŸš€ Starting AI Image Upscaler API..."
# Check if node_modules exists
if [ ! -d "node_modules" ]; then
echo "πŸ“¦ Installing dependencies..."
npm install --production
fi
# Start the server
echo "🌟 Starting server on port ${PORT:-7860}..."
exec node server-simple.js