emotion_detection_model / convert_pytorch_to_tensorflow.py
kanad13's picture
files added
4be8ab1 verified
raw
history blame contribute delete
170 Bytes
from transformers import TFAutoModelForSequenceClassification
model = TFAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./")