fossil_app / run.sh
piperod91's picture
Update closest images display: convert gallery to table format with full specimen names
8dc677a
raw
history blame contribute delete
517 Bytes
#!/bin/bash
# Activate virtual environment
source venv/bin/activate
# Check if .env file exists
if [ ! -f .env ]; then
echo "⚠️ Warning: .env file not found!"
echo ""
echo "Please create a .env file with your HuggingFace READ_TOKEN:"
echo " READ_TOKEN=your_token_here"
echo ""
echo "Get your token from: https://huggingface.co/settings/tokens"
echo ""
read -p "Press Enter to continue anyway (models may fail to download) or Ctrl+C to exit..."
fi
# Run the app
python app.py