long292's picture
Create app.py
6b4da77 verified
raw
history blame
251 Bytes
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)