""" Application entry point """ import os from app import create_app app = create_app() if __name__ == "__main__": port = int(os.getenv("PORT", 7860)) debug = os.getenv("FLASK_ENV") == "development" print(f"🚀 Starting Flask OpenAI Chat on port {port}") print(f"🔧 Debug mode: {debug}") print(f"📍 Health check: http://localhost:{port}/health") print(f"💬 Chat endpoint: http://localhost:{port}/chat") app.run( host="0.0.0.0", port=port, debug=debug )