Embedding_fastapi / model /train_model.py
Ezhil
modified code
0d5ed90
raw
history blame contribute delete
225 Bytes
import os
# Set the Hugging Face cache directory to a writable location
os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface_cache"
from model import train_sms_classifier
# Train the model and save it
train_sms_classifier()