File size: 494 Bytes
d738ddb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import streamlit as st

# Function to clear text
def clear_text():
    st.session_state["input_text"] = ""

st.title("Text Summarizer")

input_text = st.text_area("Input", value="", key="input_text", height=300)

col1, col2 = st.columns([1, 1])
with col1:
    if st.button("Clear", on_click=clear_text):
        pass

with col2:
    if st.button("Submit"):
        # The functionality for submitting and summarizing will be added later
        st.text_area("Summary", value="Test", height=300)