saidsef's picture
fix: index out of bound
5b91372 verified
raw
history blame
271 Bytes
import streamlit as st
from transformers import pipeline
st.title("Text Summarisation")
pipe = pipeline(task="summarization", model="facebook/bart-large-cnn")
text = st.text_area("Summarise the following")
if text:
out = pipe(text, do_sample=False)
st.write(out)