Skip to main content
Glama
testgenerator.py440 B
""" Generator module tests """ import unittest from txtai.pipeline import Generator class TestGenerator(unittest.TestCase): """ Sequences tests. """ def testGeneration(self): """ Test text pipeline generation """ model = Generator("hf-internal-testing/tiny-random-gpt2") start = "Hello, how are" # Test that text is generated self.assertIsNotNone(model(start))

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/neuml/txtai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server