(no commit message)

This commit is contained in:
2025-12-20 17:25:13 -08:00
parent a725a33c8b
commit 604479613b
7 changed files with 53 additions and 2 deletions

11
summarizer.py Normal file
View File

@@ -0,0 +1,11 @@
from modaic import PrecompiledProgram
import dspy
class Summarizer(PrecompiledProgram):
def __init__(self, **kwargs):
self.predict = dspy.Predict("input -> summary")
super().__init__(**kwargs)
def forward(self, input: str) -> str:
return self.predict(input=input)