Files
rpa_vision_v3/fix_huggingface_cache.sh
Dom a27b74cf22 v1.0 - Version stable: multi-PC, détection UI-DETR-1, 3 modes exécution
- Frontend v4 accessible sur réseau local (192.168.1.40)
- Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard)
- Ollama GPU fonctionnel
- Self-healing interactif
- Dashboard confiance

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:23:51 +01:00

33 lines
842 B
Bash
Executable File

#!/bin/bash
# Fix HuggingFace cache permissions for rpa user
set -e
echo "🔧 Correction du Cache HuggingFace"
echo "=================================="
echo ""
if [ "$EUID" -ne 0 ]; then
echo "❌ Ce script doit être exécuté avec sudo"
echo "Usage: sudo bash fix_huggingface_cache.sh"
exit 1
fi
# Créer le répertoire cache HuggingFace
echo "📁 Création du répertoire cache..."
mkdir -p /home/rpa/.cache/huggingface
mkdir -p /home/rpa/.cache/huggingface/hub
mkdir -p /home/rpa/.cache/torch
# Définir les permissions correctes
echo "🔐 Configuration des permissions..."
chown -R rpa:rpa /home/rpa/.cache
chmod -R 755 /home/rpa/.cache
echo "✅ Cache HuggingFace créé et configuré"
echo ""
echo "📋 Vérification:"
ls -la /home/rpa/.cache/
echo ""
echo "✓ Prêt pour le téléchargement des modèles CLIP"