Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Erfan11
/
Textwizai
like
0
Sleeping
App
Files
Files
Community
1
027bca4
Textwizai
/
load_model.py
Erfan11
Update load_model.py
8bad412
verified
about 2 months ago
raw
Copy download link
history
blame
Safe
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)