2 Commits
main ... dev

Author SHA1 Message Date
10be28a125 (no commit message) 2025-12-21 13:34:10 -08:00
4332346d9b (no commit message) 2025-12-20 17:25:45 -08:00

View File

@@ -4,8 +4,9 @@ import dspy
class Summarizer(PrecompiledProgram):
def __init__(self, **kwargs):
self.predict = dspy.Predict("input -> summary")
super().__init__(**kwargs)
self.predict = dspy.Predict("input -> summary")
def forward(self, input: str) -> str:
input = input.strip()
return self.predict(input=input)