bastiango97 commited on
Commit
40e99d2
1 Parent(s): 8dbc72e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ text = st.text_area('Enter the article and I will summirize it for you:')
7
 
8
  if text:
9
  # Use the first element of the list and directly access the 'generated_text' key
10
- generated_text = pipe(text)[0].get('generated_text', '')
11
 
12
  # Display the generated text
13
  st.text(generated_text)
 
7
 
8
  if text:
9
  # Use the first element of the list and directly access the 'generated_text' key
10
+ generated_text = pipe(text)[0].get('generated_text')
11
 
12
  # Display the generated text
13
  st.text(generated_text)