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)