luisotorres
commited on
Commit
•
126e812
1
Parent(s):
67d23d6
Update app.py
Browse files
app.py
CHANGED
@@ -7,12 +7,12 @@ summarizer = pipeline(task="summarization", model="luisotorres/bart-finetuned-sa
|
|
7 |
# Title
|
8 |
st.title("📝 Text Summarization with BART Model")
|
9 |
|
10 |
-
#
|
11 |
with st.sidebar:
|
12 |
st.header("Input")
|
13 |
input_text = st.text_area("Enter text for Summarization:")
|
14 |
|
15 |
-
#
|
16 |
if st.button("Summarize"):
|
17 |
# If the input box isn't empty, process the input and generate a summary
|
18 |
if input_text:
|
|
|
7 |
# Title
|
8 |
st.title("📝 Text Summarization with BART Model")
|
9 |
|
10 |
+
# Creating a sidebar for input
|
11 |
with st.sidebar:
|
12 |
st.header("Input")
|
13 |
input_text = st.text_area("Enter text for Summarization:")
|
14 |
|
15 |
+
# Creating a button to start the summarization
|
16 |
if st.button("Summarize"):
|
17 |
# If the input box isn't empty, process the input and generate a summary
|
18 |
if input_text:
|