#!/usr/bin/env python3 """ Start the Enhanced LinkedIn Sourcing Agent FastAPI server with Groq/Llama integration """ import sys import os from app.enhanced_main import app # šŸ‘ˆ This line makes `app` available globally # This part runs only when executing the file directly if __name__ == "__main__": import uvicorn print("šŸš€ Starting Enhanced LinkedIn Sourcing Agent API Server...") print("šŸ¤– Powered by Groq API + Llama models") print("šŸ“” API will be available at: http://localhost:8000") print("🌐 Frontend will be available at: http://localhost:8000/frontend") print("šŸ“š API documentation at: http://localhost:8000/docs") print("šŸ’š Health check at: http://localhost:8000/health") print("\nPress Ctrl+C to stop the server") try: uvicorn.run( "start_enhanced_server:app", # šŸ‘ˆ points to this file's app object host="0.0.0.0", port=8000, reload=True, log_level="info" ) except KeyboardInterrupt: print("\nšŸ‘‹ Server stopped by user") except Exception as e: print(f"āŒ Error starting server: {e}") sys.exit(1)