Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,11 @@ def main():
|
|
7 |
st.title('EN sentence mask filling')
|
8 |
st.markdown('Mask a word with [MASK]. For example, **I [MASK] dog for a walk**')
|
9 |
masked = st.text_input('Masked sentence','Please insert a sentence')
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
12 |
|
13 |
if __name__ == "__main__":
|
14 |
main()
|
|
|
7 |
st.title('EN sentence mask filling')
|
8 |
st.markdown('Mask a word with [MASK]. For example, **I [MASK] dog for a walk**')
|
9 |
masked = st.text_input('Masked sentence','Please insert a sentence')
|
10 |
+
|
11 |
+
if '[MASK]' is in masked.split(' '):
|
12 |
+
output = unmasker(masked)
|
13 |
+
else:
|
14 |
+
print('Sentence is not masked!!!')
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
main()
|