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