Research_AI_Assistant / quick_test.sh
JatsTheAIGen's picture
Initial commit V1
66dbebd
raw
history blame
783 Bytes
#!/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!"