#!/bin/bash # Script para hacer push a Hugging Face # Necesitas tu token de Hugging Face echo "🚀 Pushing Jan v1 Research Assistant to Hugging Face..." echo "" echo "Necesitas tu token de Hugging Face." echo "Puedes obtenerlo en: https://huggingface.co/settings/tokens" echo "" read -p "Pega tu token de Hugging Face aquí: " HF_TOKEN if [ -z "$HF_TOKEN" ]; then echo "❌ Token vacío. Abortando." exit 1 fi # Configurar la URL con el token git remote set-url origin https://darwincb:${HF_TOKEN}@huggingface.co/spaces/darwincb/jan-v1-research # Hacer push echo "📤 Subiendo archivos..." git push origin main if [ $? -eq 0 ]; then echo "✅ ¡Éxito! Jan v1 Research Assistant subido a Hugging Face" echo "🔗 Ve a: https://huggingface.co/spaces/darwincb/jan-v1-research" echo "" echo "⚠️ IMPORTANTE: Ve a Settings y selecciona 'GPU T4 medium' para que funcione" else echo "❌ Error al hacer push. Verifica tu token." fi # Limpiar el token de la URL remota por seguridad git remote set-url origin https://huggingface.co/spaces/darwincb/jan-v1-research