Commit
·
7affda1
1
Parent(s):
1012c21
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ try:
|
|
100 |
option = st.selectbox(
|
101 |
'Choose any of these sentences or type any text below',
|
102 |
('', "[MASK] who lives in New York and works for XCorp suffers from Parkinson's", "Lou Gehrig who lives in [MASK] and works for XCorp suffers from Parkinson's","'Lou Gehrig who lives in New York and works for [MASK] suffers from Parkinson's'","'Lou Gehrig who lives in New York and works for XCorp suffers from [MASK]'","[MASK] who lives in New York and works for XCorp suffers from Lou Gehrig's", "Parkinson who lives in [MASK] and works for XCorp suffers from Lou Gehrig's","Parkinson who lives in New York and works for [MASK] suffers from Lou Gehrig's","Parkinson who lives in New York and works for XCorp suffers from [MASK]","Lou Gehrig","Parkinson","Lou Gehrigh's is a [MASK]","Parkinson is a [MASK]","New York is a [MASK]","New York","XCorp","XCorp is a [MASK]","acute lymphoblastic leukemia","acute lymphoblastic leukemia is a [MASK]"))
|
103 |
-
|
104 |
default_text = "Imatinib is used to [MASK] acute lymphoblastic leukemia"
|
105 |
input_text = st.text_area(
|
106 |
label="Enter text below",
|
|
|
100 |
option = st.selectbox(
|
101 |
'Choose any of these sentences or type any text below',
|
102 |
('', "[MASK] who lives in New York and works for XCorp suffers from Parkinson's", "Lou Gehrig who lives in [MASK] and works for XCorp suffers from Parkinson's","'Lou Gehrig who lives in New York and works for [MASK] suffers from Parkinson's'","'Lou Gehrig who lives in New York and works for XCorp suffers from [MASK]'","[MASK] who lives in New York and works for XCorp suffers from Lou Gehrig's", "Parkinson who lives in [MASK] and works for XCorp suffers from Lou Gehrig's","Parkinson who lives in New York and works for [MASK] suffers from Lou Gehrig's","Parkinson who lives in New York and works for XCorp suffers from [MASK]","Lou Gehrig","Parkinson","Lou Gehrigh's is a [MASK]","Parkinson is a [MASK]","New York is a [MASK]","New York","XCorp","XCorp is a [MASK]","acute lymphoblastic leukemia","acute lymphoblastic leukemia is a [MASK]"))
|
103 |
+
bert_tokenizer, bert_model = load_bert_model(model_name)
|
104 |
default_text = "Imatinib is used to [MASK] acute lymphoblastic leukemia"
|
105 |
input_text = st.text_area(
|
106 |
label="Enter text below",
|