Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# Function to clear text
|
4 |
+
def clear_text():
|
5 |
+
st.session_state["input_text"] = ""
|
6 |
+
|
7 |
+
st.title("Text Summarizer")
|
8 |
+
|
9 |
+
input_text = st.text_area("Input", value="", key="input_text", height=300)
|
10 |
+
|
11 |
+
col1, col2 = st.columns([1, 1])
|
12 |
+
with col1:
|
13 |
+
if st.button("Clear", on_click=clear_text):
|
14 |
+
pass
|
15 |
+
|
16 |
+
with col2:
|
17 |
+
if st.button("Submit"):
|
18 |
+
# The functionality for submitting and summarizing will be added later
|
19 |
+
st.text_area("Summary", value="Test", height=300)
|