|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
echo "Running quick tests..." |
|
|
echo "" |
|
|
|
|
|
|
|
|
echo "1. Testing imports..." |
|
|
python -c "import gradio, transformers, torch, faiss; print('β All imports successful')" |
|
|
|
|
|
|
|
|
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') |
|
|
" |
|
|
|
|
|
|
|
|
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!" |
|
|
|
|
|
|