Spaces:
Runtime error
Runtime error
File size: 217 Bytes
66b2676 |
1 2 3 4 5 6 7 8 9 |
import streamlit as st
from transformers import pipeline
summarizer = pipeline("summarization")
text = st.text_area('Enter some text : ')
if text:
out = summarizer(text, min_length=5, max_length=20)
st.json(out) |