Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,10 @@ def summarize_text(text):
|
|
27 |
start = i + 1
|
28 |
end = start + 6
|
29 |
break
|
30 |
-
|
|
|
|
|
|
|
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 |
|