AliTahir / app.py
alit2204's picture
Create app.py
0095f26 verified
raw
history blame
368 Bytes
import streamlit as st
from transformers import pipeline
# Load the summarization pipeline from Hugging Face
summarizer = pipeline("summarization", model="alit2204/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)