Spaces:
Build error
Build error
jishnuprakash
commited on
Commit
·
44340f9
1
Parent(s):
a46f9af
path updated
Browse files
home.py
CHANGED
@@ -43,9 +43,7 @@ expander.write("""This is minimal user interface implemetation to view and inter
|
|
43 |
#Load trained model
|
44 |
@st.cache(allow_output_mutation=True)
|
45 |
def load_model():
|
46 |
-
trained_model = ut.LexGlueTagger.load_from_checkpoint(
|
47 |
-
os.path.join(os.getcwd(), ut.checkpoint_dir, ut.check_filename+'.ckpt'),
|
48 |
-
num_classes = ut.num_classes)
|
49 |
#Initialise BERT tokenizer
|
50 |
tokenizer = AutoTokenizer.from_pretrained(ut.bert_model)
|
51 |
#Set to Eval and freeze to avoid weight update
|
|
|
43 |
#Load trained model
|
44 |
@st.cache(allow_output_mutation=True)
|
45 |
def load_model():
|
46 |
+
trained_model = ut.LexGlueTagger.load_from_checkpoint(ut.check_filename+'.ckpt', num_classes = ut.num_classes)
|
|
|
|
|
47 |
#Initialise BERT tokenizer
|
48 |
tokenizer = AutoTokenizer.from_pretrained(ut.bert_model)
|
49 |
#Set to Eval and freeze to avoid weight update
|