Skip to main content
Glama
testsequences.py419 B
""" Sequences module tests """ import unittest from txtai.pipeline import Sequences class TestSequences(unittest.TestCase): """ Sequences tests. """ def testGeneration(self): """ Test text2text pipeline generation """ model = Sequences("t5-small") self.assertEqual(model("Testing the model", prefix="translate English to German: "), "Das Modell zu testen")

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