Spaces:
Sleeping
Sleeping
File size: 370 Bytes
6e5c5c1 6bf15d6 6e5c5c1 b1ddd97 6bf15d6 6e5c5c1 b1ddd97 21e4670 6e5c5c1 b1ddd97 21e4670 b1ddd97 21e4670 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import streamlit as st
from transformers import pipeline
# Load the summarization pipeline from Hugging Face
summarizer = pipeline("summarization", model="Suhaib-27/check")
# Streamlit interface
st.title("Text Summarization App")
# get the topic
text = st.text_area("Enter the text to be summarized")
if text:
output = summarizer(text)
st.write(output)
|