Neuracraft / model_loading.py
Erfan11's picture
Update model_loading.py
2a58fc8 verified
raw
history blame
No virus
186 Bytes
import os
import tensorflow as tf
from dotenv import load_dotenv
load_dotenv()
model_path = os.getenv('MODEL_PATH')
def load_model():
return tf.keras.models.load_model(model_path)