StockSense-AI / backend /check_labels.py
PROSTLE's picture
chore: backup existing working state before UI updates
af0538f
Raw History Blame Contribute Delete
209 Bytes
from transformers import AutoConfig
import json
MODEL_NAME = "ProsusAI/finbert"
config = AutoConfig.from_pretrained(MODEL_NAME)
with open("finbert_labels.json", "w") as f:
json.dump(config.id2label, f)