Spaces:
Sleeping
Sleeping
Quintino Fernandes
commited on
Commit
·
cc127e7
1
Parent(s):
01f1ccd
1st summary print test
Browse files
main.py
CHANGED
|
@@ -121,8 +121,9 @@ class QueryProcessor:
|
|
| 121 |
top_indices = np.argsort(-centrality_scores)[:10]
|
| 122 |
key_sentences = [sentences[idx].strip() for idx in top_indices]
|
| 123 |
combined_text = ' '.join(key_sentences)
|
| 124 |
-
|
| 125 |
print(f"First summary done with: {len(key_sentences)} sentences")
|
|
|
|
| 126 |
|
| 127 |
return {
|
| 128 |
"summary": self.summarization_model.summarize(combined_text),
|
|
|
|
| 121 |
top_indices = np.argsort(-centrality_scores)[:10]
|
| 122 |
key_sentences = [sentences[idx].strip() for idx in top_indices]
|
| 123 |
combined_text = ' '.join(key_sentences)
|
| 124 |
+
|
| 125 |
print(f"First summary done with: {len(key_sentences)} sentences")
|
| 126 |
+
print(f"Sentences: {combined_text}")
|
| 127 |
|
| 128 |
return {
|
| 129 |
"summary": self.summarization_model.summarize(combined_text),
|