Spaces:
Runtime error
Runtime error
include time track
Browse files- summarize.py +3 -0
summarize.py
CHANGED
@@ -37,6 +37,7 @@ def bart_summarize(text: str):
|
|
37 |
|
38 |
# summarize each input chunk separately
|
39 |
summaries = []
|
|
|
40 |
for chunk in input_chunks:
|
41 |
# encode the input chunk
|
42 |
|
@@ -52,4 +53,6 @@ def bart_summarize(text: str):
|
|
52 |
# # combine the summaries to get the final summary for the entire input
|
53 |
final_summary = " ".join(summaries)
|
54 |
|
|
|
|
|
55 |
return final_summary
|
|
|
37 |
|
38 |
# summarize each input chunk separately
|
39 |
summaries = []
|
40 |
+
print(datetime.now().strftime("%H:%M:%S"))
|
41 |
for chunk in input_chunks:
|
42 |
# encode the input chunk
|
43 |
|
|
|
53 |
# # combine the summaries to get the final summary for the entire input
|
54 |
final_summary = " ".join(summaries)
|
55 |
|
56 |
+
print(datetime.now().strftime("%H:%M:%S"))
|
57 |
+
|
58 |
return final_summary
|