Spaces:
Runtime error
Runtime error
fix return
Browse files
utils.py
CHANGED
@@ -100,8 +100,8 @@ def preprocess_text_for_abstractive_summarization(tokenizer, text):
|
|
100 |
|
101 |
def read_text_from_file(file):
|
102 |
|
103 |
-
txt_file = open(file, "r")
|
104 |
-
file_text =
|
105 |
-
txt_file.close()
|
106 |
|
107 |
return file_text
|
|
|
100 |
|
101 |
def read_text_from_file(file):
|
102 |
|
103 |
+
# txt_file = open(file, "r")
|
104 |
+
file_text = file.read()
|
105 |
+
# txt_file.close()
|
106 |
|
107 |
return file_text
|