Spaces:
Runtime error
Runtime error
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) |