JavonTeo commited on
Commit
3dc51a4
1 Parent(s): 352ec46

Edit error message.

Browse files
Files changed (1) hide show
  1. controlled_summarization.py +1 -1
controlled_summarization.py CHANGED
@@ -81,7 +81,7 @@ def ctrlsum_for_file(input=None, length=None, keywords="", text="", url="") -> L
81
  for res in results["summary"]:
82
  output.append(f"{res}\n\n")
83
  if results["raw_text"] == "":
84
- return "Unable to parse File !", None, filename # if file parsing does not have any output string
85
  return "".join(output), results["raw_text"], filename
86
 
87
 
 
81
  for res in results["summary"]:
82
  output.append(f"{res}\n\n")
83
  if results["raw_text"] == "":
84
+ return "Unable to parse File, please try with a different file!", None, filename # if file parsing does not have any output string
85
  return "".join(output), results["raw_text"], filename
86
 
87