Spaces:
Running
Running
Update knowledgeassistant/components/summarization.py
Browse files
knowledgeassistant/components/summarization.py
CHANGED
@@ -24,7 +24,7 @@ class DataSummarization:
|
|
24 |
logging.info(f"Input Text: {text[:500]}")
|
25 |
|
26 |
if not text.strip():
|
27 |
-
|
28 |
|
29 |
summary = pipe(text, min_length = min_length, do_sample = False)
|
30 |
logging.info(f"Summary Output: {summary}")
|
|
|
24 |
logging.info(f"Input Text: {text[:500]}")
|
25 |
|
26 |
if not text.strip():
|
27 |
+
raise KnowledgeAssistantException("Input text is empty")
|
28 |
|
29 |
summary = pipe(text, min_length = min_length, do_sample = False)
|
30 |
logging.info(f"Summary Output: {summary}")
|