mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 06:26:03 +00:00
fix: Remove model loading from healthcheck endpoint to prevent timeout during deployment
This commit is contained in:
parent
3c9fdc8b5f
commit
bb53f17a73
@ -69,11 +69,10 @@ def index():
|
||||
|
||||
@app.route('/health', methods=['GET'])
|
||||
def health():
|
||||
"""Health check endpoint"""
|
||||
model_status = load_model()
|
||||
"""Health check endpoint - fast response without loading model"""
|
||||
return jsonify({
|
||||
'status': 'healthy',
|
||||
'model_loaded': model_status is not None,
|
||||
'model_loaded': model is not None,
|
||||
'environment': app.config['ENV']
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user