nakere424 commited on
Commit
8486efa
·
1 Parent(s): 7337250

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- output = unmasker(masked)
 
 
 
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()