varl42 commited on
Commit
6fedea4
·
1 Parent(s): ecca0d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -27,7 +27,10 @@ def summarize_text(text):
27
  start = i + 1
28
  end = start + 6
29
  break
30
- abstract = ". ".join(sentences[start:end+1])
 
 
 
31
  else:
32
  return("Abstract section not found")
33
 
 
27
  start = i + 1
28
  end = start + 6
29
  break
30
+
31
+ if start is not None and end is not None:
32
+ abstract = ". ".join(sentences[start:end+1])
33
+ #print(abstract)
34
  else:
35
  return("Abstract section not found")
36