fix: Remove model loading from healthcheck endpoint to prevent timeout during deployment

This commit is contained in:
Claude 2025-11-23 07:27:11 +00:00
parent 3c9fdc8b5f
commit bb53f17a73
No known key found for this signature in database

View File

@ -69,11 +69,10 @@ def index():
@app.route('/health', methods=['GET']) @app.route('/health', methods=['GET'])
def health(): def health():
"""Health check endpoint""" """Health check endpoint - fast response without loading model"""
model_status = load_model()
return jsonify({ return jsonify({
'status': 'healthy', 'status': 'healthy',
'model_loaded': model_status is not None, 'model_loaded': model is not None,
'environment': app.config['ENV'] 'environment': app.config['ENV']
}) })