Spaces:
Runtime error
Runtime error
File size: 374 Bytes
f735fcb |
1 2 3 4 5 6 7 8 |
from get_drive_model import ensure_model_download
import constants as const
def load_and_test_models():
# Ensure the models are downloaded before starting the Flask app
ensure_model_download(const.ANOMALY_DETECTION_MODEL_FILE_ID, 'anomaly_detection_model.h5')
ensure_model_download(const.ANOMALY_CLASSIFICATION_MODEL_FILE_ID, 'anomaly_classification_model.h5') |