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" }