File size: 1,096 Bytes
3fcfd23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/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