Spaces:
Configuration error
Configuration error
Download test_scripts.sh from marcosremar2/llama-omni: direct link, hf CLI and curl.
- Browser
- Download file 1.64 kB
-
https://huggingface.co/spaces/marcosremar2/llama-omni/resolve/main/test_scripts.sh
- Command line
-
hf download hf://spaces/marcosremar2/llama-omni/test_scripts.sh
-
curl -L -o test_scripts.sh https://huggingface.co/spaces/marcosremar2/llama-omni/resolve/main/test_scripts.sh
1.64 kB
| # Script de teste para verificar se os scripts foram criados corretamente | |
| echo "🧪 Testando scripts do LLaMA-Omni2" | |
| echo "==================================" | |
| echo "" | |
| # Verificar se scripts existem | |
| echo "📁 Verificando arquivos criados:" | |
| for script in install.sh start_controller.sh start_webserver.sh start_worker.sh start_all.sh; do | |
| if [ -f "$script" ]; then | |
| echo "✅ $script - OK ($(wc -l < $script) linhas)" | |
| else | |
| echo "❌ $script - NÃO ENCONTRADO" | |
| fi | |
| done | |
| echo "" | |
| echo "📋 Verificando executabilidade:" | |
| for script in *.sh; do | |
| if [ -x "$script" ]; then | |
| echo "✅ $script - executável" | |
| else | |
| echo "❌ $script - não executável" | |
| fi | |
| done | |
| echo "" | |
| echo "🔍 Verificando conteúdo do install.sh:" | |
| echo " - Total de etapas: $(grep -c "show_progress" install.sh)" | |
| echo " - Modelo configurado: $(grep "MODEL_NAME=" install.sh | head -1 | cut -d'"' -f2)" | |
| echo " - Python requerido: $(grep "PYTHON_VERSION=" install.sh | head -1 | cut -d'"' -f2)" | |
| echo "" | |
| echo "🔍 Verificando componentes nos scripts de inicialização:" | |
| echo " - Controller porta: $(grep -oE "port 10000" start_controller.sh | head -1)" | |
| echo " - WebServer porta: $(grep -oE "port 8000" start_webserver.sh | head -1)" | |
| echo " - Worker porta: $(grep -oE "port 40000" start_worker.sh | head -1)" | |
| echo "" | |
| echo "📊 Resumo:" | |
| echo " - Scripts criados: $(ls -1 *.sh 2>/dev/null | wc -l)" | |
| echo " - Total de linhas: $(wc -l *.sh 2>/dev/null | tail -1 | awk '{print $1}')" | |
| echo " - Arquivos de configuração: $(ls -1 .llama_omni2_* 2>/dev/null | wc -l)" | |
| echo "" | |
| echo "✅ Teste concluído!" |