Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ from transformers import pipeline
|
|
3 |
|
4 |
unmasker = pipeline('fill-mask', model='dsfsi/zabantu-sot-ven-170m')
|
5 |
|
|
|
|
|
6 |
def fill_mask(sentences):
|
7 |
results = {}
|
8 |
for sentence in sentences:
|
@@ -27,7 +29,6 @@ with col1:
|
|
27 |
|
28 |
text_input = st.text_area(
|
29 |
"Enter sentences with <mask> token:",
|
30 |
-
value=st.session_state.text_area
|
31 |
)
|
32 |
|
33 |
input_sentences = text_input.split("\n")
|
|
|
3 |
|
4 |
unmasker = pipeline('fill-mask', model='dsfsi/zabantu-sot-ven-170m')
|
5 |
|
6 |
+
st.set_page_config(layout="wide")
|
7 |
+
|
8 |
def fill_mask(sentences):
|
9 |
results = {}
|
10 |
for sentence in sentences:
|
|
|
29 |
|
30 |
text_input = st.text_area(
|
31 |
"Enter sentences with <mask> token:",
|
|
|
32 |
)
|
33 |
|
34 |
input_sentences = text_input.split("\n")
|