final-project / app.py
TFToodie's picture
Create app.py
6137008 verified
raw
history blame
300 Bytes
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
import torch
# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("jjzha/jobbert_knowledge_extraction")
model = AutoModelForTokenClassification.from_pretrained("jjzha/jobbert_knowledge_extraction")