Spaces:
Runtime error
Runtime error
File size: 607 Bytes
a3c9d6d d12b8d7 a3c9d6d 5d61502 6d3173c 824f845 0725e2d 824f845 d12b8d7 5d61502 824f845 6d3173c d12b8d7 824f845 d12b8d7 824f845 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import streamlit as st
import pandas as pd
#import torch
from transformers import pipeline
summarizer = pipeline("summarization", model="google/bigbird-pegasus-large-bigpatent"
st.title("Text Summarization 🤓")
st.markdown("This is a Web application that Summarizes Text 😎")
text=st.text_area('Enter Text')
summarize = st.button("Summarize")
# Check to see if a file has been uploaded
if summarize:
st.success("Summarizing Text, Please wait...")
# If it has then do the following:
result=summarizer(text,min_length=100, max_length=400)
st.header(result)
|