LOG_REG / validate.py
subbunanepalli's picture
Create validate.py
a933cfb verified
raw
history blame contribute delete
361 Bytes
import os
from config import MODEL_PATH, TFIDF_PATH
def validate_files():
model_exists = os.path.exists(MODEL_PATH)
vectorizer_exists = os.path.exists(TFIDF_PATH)
return {
"model_found": model_exists,
"vectorizer_found": vectorizer_exists,
"status": "Ready" if model_exists and vectorizer_exists else "Missing files"
}