nakere424 commited on
Commit
be18f17
·
1 Parent(s): bf022fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -4,7 +4,12 @@ import streamlit as st
4
  unmasker = pipeline('fill-mask', model='distilbert-base-uncased')
5
 
6
  def main():
7
- st.title('EN mask filling')
8
- st.write('Please insert english sentence with [MASK] to let model fill a mask')
9
- st.write('For example, I [MASK] dog for a walk')
10
-
 
 
 
 
 
 
4
  unmasker = pipeline('fill-mask', model='distilbert-base-uncased')
5
 
6
  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
+
14
+ if __name__ == "__main__":
15
+ main()