File size: 783 Bytes
66dbebd |
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 |
#!/bin/bash
# quick_test.sh - Quick verification commands
echo "Running quick tests..."
echo ""
# Test installation
echo "1. Testing imports..."
python -c "import gradio, transformers, torch, faiss; print('✓ All imports successful')"
# Test model loading
echo ""
echo "2. Testing embedding model loading..."
python -c "
from sentence_transformers import SentenceTransformer
model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
print('✓ Embedding model loaded successfully')
"
# Test basic functionality
echo ""
echo "3. Testing LLM Router..."
python -c "
import asyncio
import os
from llm_router import LLMRouter
router = LLMRouter(os.getenv('HF_TOKEN', ''))
print('✓ LLM Router initialized successfully')
"
echo ""
echo "✓ All quick tests completed!"
|