saidsef commited on
Commit
46c7402
·
verified ·
1 Parent(s): 1d90c39

fix: typo fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ st.title("Text Summarisation")
5
  pipe = pipeline(task="summarization", model="facebook/bart-large-cnn")
6
  text_value = st.text_area("Summarise the following")
7
 
8
- if text:
9
  out = pipe(text_value, max_length=int(len(text_value)/2), min_length=int(len(text_value)/3), do_sample=False)
10
 
11
  if len(out) >= 1:
 
5
  pipe = pipeline(task="summarization", model="facebook/bart-large-cnn")
6
  text_value = st.text_area("Summarise the following")
7
 
8
+ if text_value:
9
  out = pipe(text_value, max_length=int(len(text_value)/2), min_length=int(len(text_value)/3), do_sample=False)
10
 
11
  if len(out) >= 1: