flowerfy / run.sh
Toy
Make it run locally with new sdxl-base model
7e5d515
raw
history blame
926 Bytes
#!/bin/bash
# Flowerfy Startup Script with External SSD Model Support
# This script sets up Hugging Face cache directories and launches the app
echo "🌸 Starting Flowerfy with external SSD model cache..."
# Check if external SSD is mounted
if [ ! -d "/Volumes/extssd" ]; then
echo "❌ Error: External SSD not found at /Volumes/extssd"
echo "Please ensure your external SSD is mounted and try again."
exit 1
fi
# Create cache directories if they don't exist
mkdir -p /Volumes/extssd/huggingface/hub
# Export Hugging Face environment variables (using official HF_HOME method)
export HF_HOME="/Volumes/extssd/huggingface"
echo "βœ… Cache directories configured:"
echo " HF_HOME: $HF_HOME"
echo " Models will be cached at: $HF_HOME/hub"
echo " Datasets will be cached at: $HF_HOME/datasets"
# Launch the application with hot reload
echo "πŸš€ Launching Flowerfy with hot reload..."
uv run gradio app.py