# run.ps1 Write-Host "Starting Finance LLM System..." -ForegroundColor Green # Start FastAPI backend in a background job Write-Host "Starting FastAPI Backend on port 8000..." -ForegroundColor Cyan Start-Process -NoNewWindow -FilePath "python" -ArgumentList "-m", "uvicorn", "src.api.main:app", "--reload" # Wait a few seconds for the API to initialize Start-Sleep -Seconds 5 # Start Streamlit frontend Write-Host "Starting Streamlit Frontend..." -ForegroundColor Cyan Start-Process -FilePath "python" -ArgumentList "-m", "streamlit", "run", "src/ui/streamlit_app.py" Write-Host "System is starting! Streamlit should open in your browser automatically." -ForegroundColor Green Write-Host "To view the API documentation, visit http://localhost:8000/docs" -ForegroundColor Yellow Write-Host "Press any key to exit..." $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")