Spaces:
Sleeping
Sleeping
File size: 361 Bytes
a933cfb |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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"
}
|