SmartMate / run.py
ngwakomadikwe's picture
Create run.py
a5c5ad4 verified
raw
history blame
527 Bytes
"""
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
)