HaarisIqubal's picture
Synced repo using 'sync_with_huggingface' Github Action
c075e70 verified
raw
history blame contribute delete
493 Bytes
import streamlit as st
from .sidebar import sidebar_view
def setup_view():
st.set_page_config(page_title='Summarize Document', page_icon='πŸ“‘', layout='centered')
st.title('Summarize Document πŸ“‘')
st.write("This app summarizes text from a document. You can upload a text or PDF file and get a summary of the text.")
if 'extracted_text' not in st.session_state:
st.session_state.extracted_text = ""
sidebar_view()
st.write(st.session_state.extracted_text)