Spaces:
Sleeping
Sleeping
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) | |