Spaces:
Sleeping
Sleeping
import streamlit as st | |
from transformers import pipeline | |
model_identifier = "dnzblgn/BART_Auto_Summarization" | |
pipe = pipeline("summarization", model=model_identifier) | |
text = st.text_area("Enter text: ") | |
if text: | |
out = pipe(text) | |
st.json(out) | |