Spaces:
Sleeping
Sleeping
Edit error message.
Browse files
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 |
|