JasonTPhillipsJr commited on
Commit
ebf50a4
1 Parent(s): 9c180af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,20 +1,20 @@
1
  import streamlit as st
2
  import spacy
3
  from transformers import BertTokenizer, BertModel
 
 
 
4
  from PIL import Image
5
 
6
- #LOAD MODEL SECTION#
7
  nlp = spacy.load("./models/en_core_web_sm")
8
 
 
9
  bert_tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
10
  bert_model = BertModel.from_pretrained("bert-base-uncased")
11
  bert_model.eval()
12
- st.write("Bert enabled - remove")
13
-
14
-
15
-
16
-
17
 
 
18
 
19
 
20
 
 
1
  import streamlit as st
2
  import spacy
3
  from transformers import BertTokenizer, BertModel
4
+
5
+ from transformers.models.bert.modeling_bert import BertForMaskedLM
6
+
7
  from PIL import Image
8
 
9
+ ##LOAD MODEL SECTION##
10
  nlp = spacy.load("./models/en_core_web_sm")
11
 
12
+ #BERT Section
13
  bert_tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
14
  bert_model = BertModel.from_pretrained("bert-base-uncased")
15
  bert_model.eval()
 
 
 
 
 
16
 
17
+ #SpaBERT Section
18
 
19
 
20