Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Use smaller model with tests to fit into GitHub hosted runner

davidmezzettibb275cc6d9a5
diff --git a/test/python/testsummary.py b/test/python/testsummary.py
index 025938be..d530cd7f 100644
--- a/test/python/testsummary.py
+++ b/test/python/testsummary.py
@@ -27,14 +27,14 @@ class TestSummary(unittest.TestCase):
"that enables Natural Language Understanding (NLU) based search in any application."
)
- cls.summary = Summary()
+ cls.summary = Summary("sshleifer/distilbart-xsum-12-1")
def testSummary(self):
"""
Test summarization of text
"""
- self.assertEqual(self.summary(self.text, minlength=10, maxlength=10), "Search is the foundation of the internet")
+ self.assertEqual(self.summary(self.text, minlength=10, maxlength=10), "AI-powered search engine in the world")
def testSummaryBatch(self):
"""