import streamlit as st from textSFunctionality import generateText # Set the page configuration and theme once at the top st.set_page_config(page_title="Text Summarization", page_icon="⭐") st.write( """ """, unsafe_allow_html=True ) def main(): st.title('Text Summarization') # Text area for user input user_input = st.text_area("#### **Enter Text To Summarize**:", height=300) # Button to trigger summarization if st.button("Summarize"): if user_input: summary = generateText(user_input) st.write("#### **Summarized Text**:") st.write(summary) else: st.write("Please Enter Some Text To Summarize.") if __name__ == '__main__': main()