Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def health_check():
|
|
| 58 |
global model, tokenizer
|
| 59 |
if model is None or tokenizer is None:
|
| 60 |
success = load_model()
|
| 61 |
-
|
| 62 |
if not success:
|
| 63 |
raise HTTPException(status_code=503, detail="Model not available")
|
| 64 |
return {"status": "ok", "model": MODEL_NAME}
|
|
|
|
| 58 |
global model, tokenizer
|
| 59 |
if model is None or tokenizer is None:
|
| 60 |
success = load_model()
|
| 61 |
+
logger.info("Success")
|
| 62 |
if not success:
|
| 63 |
raise HTTPException(status_code=503, detail="Model not available")
|
| 64 |
return {"status": "ok", "model": MODEL_NAME}
|