File size: 224 Bytes
df4609d
 
 
e50c5bd
 
df4609d
 
 
e50c5bd
1
2
3
4
5
6
7
8
9
import streamlit as st
from transformers import pipeline

pipe = pipeline(task="summarization", model="facebook/bart-large-cnn")
text = st.text_area("Summarise the following")

if text:
    out = pipe(text)
    st.write(out)