mirror of
https://github.com/openai/whisper.git
synced 2025-11-23 22:15:58 +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'])
|
@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']
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user