File size: 873 Bytes
fbfc378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Upload SimulationMetadata to Hugging Face Hub

cd "$(dirname "$0")"

echo "=========================================="
echo "📦 SimulationMetadata Upload to HF"
echo "=========================================="
echo ""
echo "Repository: TaxonomyProject/SimulationMetadata"
echo "Folder: $(pwd)"
echo ""
echo "This will upload the entire SimulationMetadata folder"
echo "including annotations, taxonomy, objects, and quality ratings."
echo ""
read -p "Continue? (y/n) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
    echo "Upload cancelled."
    exit 1
fi

echo ""
echo "Starting upload..."
python upload_hf.py 2>&1 | tee upload_log.txt

if [ $? -eq 0 ]; then
    echo ""
    echo "✅ Upload completed successfully!"
    echo "Log saved to: upload_log.txt"
else
    echo ""
    echo "❌ Upload failed. Check upload_log.txt for details."
    exit 1
fi