File size: 1,661 Bytes
d97cc93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# Simple solution: Create fresh repo without large files

set -e

echo "==================================================================="
echo "Fresh Repository Setup (Simpler Alternative)"
echo "==================================================================="
echo ""
echo "This creates a fresh git repo with only the current state (no history)"
echo ""

# Confirm
read -p "Continue? This will reset git history. (y/n) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
    echo "Cancelled."
    exit 1
fi

echo ""
echo "πŸ“¦ Backing up current .git folder..."
mv .git .git.backup

echo "πŸ”„ Creating fresh repository..."
git init
git add .
git commit -m "Initial commit - Togmal Demo for HuggingFace Spaces

Features:
- Vector database-based prompt difficulty assessment
- Real-time analysis using benchmark questions
- Auto-builds database on first launch
- Small repo size (no large binary files)"

echo ""
echo "βœ… Fresh repository created!"
echo ""

# Show what will be committed
echo "πŸ“Š Files that will be pushed:"
git ls-files | head -20
echo "..."
echo ""

echo "Repository size:"
du -sh .git
echo ""

echo "==================================================================="
echo "Next Steps:"
echo "==================================================================="
echo ""
echo "1. Add Hugging Face remote:"
echo "   git remote add origin https://huggingface.co/spaces/JustTheStatsHuman/Togmal-demo"
echo ""
echo "2. Force push (this is safe since we're starting fresh):"
echo "   git push origin main --force"
echo ""
echo "3. If something went wrong, restore old git:"
echo "   rm -rf .git && mv .git.backup .git"
echo ""