nicoladisabato commited on
Commit
3cd61f5
·
1 Parent(s): 8719562

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,8 +15,9 @@ Nico: Ahahah
15
  """
16
 
17
  text = st.text_area("Enter your chat", value=predefined_text, height=200)
 
18
  pipe = pipeline("summarization", model="nicoladisabato/pegasus-samsum")
19
 
20
- if st.button('Summarize'):
21
  out = pipe(text)
22
  st.json(out)
 
15
  """
16
 
17
  text = st.text_area("Enter your chat", value=predefined_text, height=200)
18
+ button = st.button('Summarize')
19
  pipe = pipeline("summarization", model="nicoladisabato/pegasus-samsum")
20
 
21
+ if button:
22
  out = pipe(text)
23
  st.json(out)