Virajtharinda commited on
Commit
b921563
·
verified ·
1 Parent(s): e45dc5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,5 +1,10 @@
 
1
  from transformers import pipeline
2
  # create pieline for MLM
3
- mlm = pipeline('fill-mask')
4
 
5
- mlm("The cat <mask> on the roof")
 
 
 
 
 
 
1
+ import streamlit as st
2
  from transformers import pipeline
3
  # create pieline for MLM
 
4
 
5
+ pipe = pipeline('fill-mask')
6
+ text = st.text_area('enter some text!')
7
+
8
+ if text:
9
+ out = pipe(text)
10
+ st.json(out)