sabre-code commited on
Commit
0934e7e
1 Parent(s): 42f2ed7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ st.title("Text Summarization App |PEGASUS-Large|) ")
6
 
7
  # Create a text input widget
8
  text_input = st.text_area(label="Input Text", height=200)
9
-
10
  # Define a function to generate the summary
11
  def generate_summary(text):
12
  summarizer = pipeline("summarization", model="sabre-code/pegasus-large-cnn-dailymail")
@@ -26,5 +26,5 @@ else:
26
  st.warning("Please enter some text in the input field above.")
27
 
28
  # Display the generated summary
29
- st.markdown("# Summary")
30
  st.code(generated_summary)
 
6
 
7
  # Create a text input widget
8
  text_input = st.text_area(label="Input Text", height=200)
9
+ generated_summary = ""
10
  # Define a function to generate the summary
11
  def generate_summary(text):
12
  summarizer = pipeline("summarization", model="sabre-code/pegasus-large-cnn-dailymail")
 
26
  st.warning("Please enter some text in the input field above.")
27
 
28
  # Display the generated summary
29
+ st.markdown("## Summary")
30
  st.code(generated_summary)