Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -75,7 +75,7 @@ def build_albertina_page():
|
|
| 75 |
|
| 76 |
top_k = st.sidebar.number_input('Number of predictions to return', min_value=1, max_value=5, value=1, step=1)
|
| 77 |
|
| 78 |
-
st.write("Enter a sentence with a **
|
| 79 |
|
| 80 |
results = None
|
| 81 |
|
|
@@ -90,7 +90,7 @@ def build_albertina_page():
|
|
| 90 |
if submit and input_text:
|
| 91 |
results = instantiate_albertina(top_k, input_text)
|
| 92 |
except Exception as e:
|
| 93 |
-
st.warning('There must be a special token "
|
| 94 |
st.warning(e)
|
| 95 |
|
| 96 |
with col2:
|
|
|
|
| 75 |
|
| 76 |
top_k = st.sidebar.number_input('Number of predictions to return', min_value=1, max_value=5, value=1, step=1)
|
| 77 |
|
| 78 |
+
st.write("Enter a sentence with a **[MASK]** token, and the model will predict the missing word.")
|
| 79 |
|
| 80 |
results = None
|
| 81 |
|
|
|
|
| 90 |
if submit and input_text:
|
| 91 |
results = instantiate_albertina(top_k, input_text)
|
| 92 |
except Exception as e:
|
| 93 |
+
st.warning('There must be a special token "[MASK]" in sentence!', icon="⚠️")
|
| 94 |
st.warning(e)
|
| 95 |
|
| 96 |
with col2:
|