Spaces:
Runtime error
Runtime error
Virajtharinda
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,10 @@
|
|
|
|
1 |
from transformers import pipeline
|
2 |
# create pieline for MLM
|
3 |
-
mlm = pipeline('fill-mask')
|
4 |
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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)
|