luisotorres commited on
Commit
38780dc
1 Parent(s): 5e2190f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,12 +5,12 @@ from transformers import pipeline
5
  summarizer = pipeline(task="summarization", model="luisotorres/bart-finetuned-samsum")
6
 
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"):
@@ -22,4 +22,4 @@ if st.button("Summarize"):
22
  st.subheader("Summary")
23
  st.write(summary[0]["summary_text"])
24
  else:
25
- st.warning("Enter text for summarization.")
 
5
  summarizer = pipeline(task="summarization", model="luisotorres/bart-finetuned-samsum")
6
 
7
  # Title
8
+ st.title("📝 Text Summarization with BART")
9
 
10
  # Creating a sidebar for input
11
  with st.sidebar:
12
  st.header("Input")
13
+ input_text = st.text_area("Enter a text or dialogue for summarization.")
14
 
15
  # Creating a button to start the summarization
16
  if st.button("Summarize"):
 
22
  st.subheader("Summary")
23
  st.write(summary[0]["summary_text"])
24
  else:
25
+ st.warning("Enter a text or dialogue for summarization.")