dexay commited on
Commit
0f8fc3c
·
1 Parent(s): 85c9131

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -8,6 +8,8 @@ st.text("This tool lets you extract relation triples concerning interactions bet
8
  st.text("It is the result of an end of studies project within ESI school and dedicated to biomedical researchers looking to extract precise information about the subject without digging into long publications.")
9
  x = st.text_area('Entre you text on EDCs:')
10
 
 
 
11
  #model.to("cpu")
12
  tokenizer = AutoTokenizer.from_pretrained("dmis-lab/biobert-large-cased-v1.1", truncation = True, padding=True, model_max_length=512,)
13
  model_checkpoint = BertForTokenClassification.from_pretrained("dexay/Ner2HgF", )
 
8
  st.text("It is the result of an end of studies project within ESI school and dedicated to biomedical researchers looking to extract precise information about the subject without digging into long publications.")
9
  x = st.text_area('Entre you text on EDCs:')
10
 
11
+ if x[-1] not in ".?:":
12
+ x += "."
13
  #model.to("cpu")
14
  tokenizer = AutoTokenizer.from_pretrained("dmis-lab/biobert-large-cased-v1.1", truncation = True, padding=True, model_max_length=512,)
15
  model_checkpoint = BertForTokenClassification.from_pretrained("dexay/Ner2HgF", )