File size: 951 Bytes
5acc845
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

# Set up Hugging Face environment variables
# IMPORTANT: Set your actual HF_TOKEN and HF_USERNAME as environment variables
# Do NOT commit tokens to git!

if [ -z "$HF_TOKEN" ]; then
    echo "⚠️  HF_TOKEN environment variable not set!"
    echo "💡 Please set it manually: export HF_TOKEN='your_token_here'"
    exit 1
fi

if [ -z "$HF_USERNAME" ]; then
    echo "⚠️  HF_USERNAME environment variable not set!"
    echo "💡 Please set it manually: export HF_USERNAME='your_username'"
    exit 1
fi

echo "✅ Hugging Face environment variables set:"
echo "   HF_TOKEN: ${HF_TOKEN:0:10}..."
echo "   HF_USERNAME: $HF_USERNAME"
echo ""
echo "💡 You can now run the application with proper HF authentication!"
echo "   The system will automatically upload models and datasets to:"
echo "   - Models: https://huggingface.co/$HF_USERNAME/dressify-models"
echo "   - Datasets: https://huggingface.co/$HF_USERNAME/Dressify-Helper"