Spaces:
Runtime error
Runtime error
Commit
·
79076f5
1
Parent(s):
18e3f15
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def summary(txt, top_n=5):
|
|
| 52 |
scores = nx.pagerank(sentence_similarity_graph)
|
| 53 |
ranked_sentence = sorted(((scores[i],s) for i,s in enumerate(sentences)), reverse=True)
|
| 54 |
for i in range(top_n):
|
| 55 |
-
summarized_text.append(" ".join(ranked_sentence[i][
|
| 56 |
return(". ".join(summarized_text))
|
| 57 |
|
| 58 |
|
|
|
|
| 52 |
scores = nx.pagerank(sentence_similarity_graph)
|
| 53 |
ranked_sentence = sorted(((scores[i],s) for i,s in enumerate(sentences)), reverse=True)
|
| 54 |
for i in range(top_n):
|
| 55 |
+
summarized_text.append(" ".join(ranked_sentence[i][1]))
|
| 56 |
return(". ".join(summarized_text))
|
| 57 |
|
| 58 |
|