launch.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. # Diff Edits Evaluation Dashboard Launcher
  3. echo "🚀 Starting Diff Edits Evaluation Dashboard..."
  4. # Check if we're in the right directory
  5. if [ ! -f "app.py" ]; then
  6. echo "❌ Error: app.py not found. Please run this script from the dashboard directory."
  7. exit 1
  8. fi
  9. # Check if database exists
  10. if [ ! -f "../evals.db" ]; then
  11. echo "⚠️ Warning: Database file ../evals.db not found."
  12. echo " Make sure you've run some evaluations first to populate the database."
  13. echo " You can run: node ../cli/dist/index.js run-diff-eval --model-id anthropic/claude-sonnet-4 --max-cases 1"
  14. echo ""
  15. fi
  16. # Check if requirements are installed
  17. echo "📦 Checking Python dependencies..."
  18. if ! python -c "import streamlit, plotly, pandas" 2>/dev/null; then
  19. echo "📥 Installing required packages..."
  20. pip install -r requirements.txt
  21. fi
  22. echo "🌐 Launching Streamlit dashboard..."
  23. echo " Dashboard will open in your browser at http://localhost:8501"
  24. echo " Press Ctrl+C to stop the dashboard"
  25. echo ""
  26. # Launch Streamlit
  27. streamlit run app.py