Bootcamp_2307 / app.py
Suhaib-27's picture
Update app.py
21e4670 verified
raw
history blame contribute delete
370 Bytes
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)