TFToodie commited on
Commit
6137008
·
verified ·
1 Parent(s): 07c1f5a

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
2
+ import torch
3
+
4
+ # Load the tokenizer and model
5
+ tokenizer = AutoTokenizer.from_pretrained("jjzha/jobbert_knowledge_extraction")
6
+ model = AutoModelForTokenClassification.from_pretrained("jjzha/jobbert_knowledge_extraction")