V.AISTUDIO / build.sh
bep40's picture
Upload build.sh
445602d verified
Raw
History Blame Contribute Delete
494 Bytes
#!/bin/bash
set -e
echo "=== Building V.AISTUDIO with SEO stubs ==="
# Install dependencies
pip install huggingface_hub -q
# Run the SEO stub generator
python3 app/run_seo_generation.py
# Also process any standalone HTML files (legacy)
for f in san-pham/*.html; do
if [ -f "$f" ]; then
slug="${f#san-pham/}"
slug="${slug%.html}"
mkdir -p "san-pham/$slug"
cp "$f" "san-pham/$slug/index.html"
echo "Copied $f -> san-pham/$slug/index.html"
fi
done
echo "Build complete"