#!/usr/bin/env python3 """ Simple script to start the backend server. """ import subprocess import sys def start_backend(): """Start the backend server.""" try: print("šŸš€ Starting backend server...") print("šŸ“ This will start the FastAPI server on http://localhost:7860") print("šŸ“ Keep this terminal window open while using the application") print("šŸ“ To stop the server, press Ctrl+C\n") # Start the server subprocess.run([ sys.executable, "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--reload" ]) except KeyboardInterrupt: print("\nšŸ›‘ Server stopped by user") except Exception as e: print(f"āŒ Error starting server: {e}") if __name__ == "__main__": start_backend()