Commit
·
f223451
1
Parent(s):
f8dc81b
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def run_test(sent,top_k,model_name):
|
|
88 |
st.text(f"prediction took {time.time() - start:.2f}s")
|
89 |
|
90 |
|
91 |
-
st.markdown("<h3 style='text-align: center;'>Qualitative evaluation of
|
92 |
st.markdown("""
|
93 |
<small style="font-size:18px; color: #8f8f8f">This app is used to qualitatively examine the performance of pretrained models to do NER , <a href="https://ajitrajasekharan.github.io/2021/01/02/my-first-post.html"><b>with no fine tuning</b></small></a>
|
94 |
""", unsafe_allow_html=True)
|
@@ -112,7 +112,7 @@ try:
|
|
112 |
'Choose any of these sentences or type any text below',
|
113 |
('', "[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]"))
|
114 |
input_text = st.text_input("Enter text below", "")
|
115 |
-
custom_model_name = st.text_input("Model not listed on left? Type the model name (fill-mask models only)", "")
|
116 |
if (len(custom_model_name) > 0):
|
117 |
model_name = custom_model_name
|
118 |
st.info("Custom model selected: " + model_name)
|
|
|
88 |
st.text(f"prediction took {time.time() - start:.2f}s")
|
89 |
|
90 |
|
91 |
+
st.markdown("<h3 style='text-align: center;'>Qualitative evaluation of any pretrained BERT models</h3>", unsafe_allow_html=True)
|
92 |
st.markdown("""
|
93 |
<small style="font-size:18px; color: #8f8f8f">This app is used to qualitatively examine the performance of pretrained models to do NER , <a href="https://ajitrajasekharan.github.io/2021/01/02/my-first-post.html"><b>with no fine tuning</b></small></a>
|
94 |
""", unsafe_allow_html=True)
|
|
|
112 |
'Choose any of these sentences or type any text below',
|
113 |
('', "[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]"))
|
114 |
input_text = st.text_input("Enter text below", "")
|
115 |
+
custom_model_name = st.text_input("Model not listed on left? Type the model name (fill-mask BERT models only)", "")
|
116 |
if (len(custom_model_name) > 0):
|
117 |
model_name = custom_model_name
|
118 |
st.info("Custom model selected: " + model_name)
|