Spaces:
Runtime error
Runtime error
File size: 251 Bytes
6b4da77 |
1 2 3 4 5 6 7 8 9 10 11 |
import streamlit as st
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text2text-generation", model="long292/bartpho-word")
text = st.text_area('enter some text')
if text:
out = pipe(text)
st.json(out) |