(no commit message)
This commit is contained in:
@@ -4,8 +4,8 @@ import dspy
|
|||||||
|
|
||||||
class Summarizer(PrecompiledProgram):
|
class Summarizer(PrecompiledProgram):
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
self.predict = dspy.Predict("input -> summary")
|
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
self.predict = dspy.Predict("input -> summary")
|
||||||
|
|
||||||
def forward(self, input: str) -> str:
|
def forward(self, input: str) -> str:
|
||||||
return self.predict(input=input)
|
return self.predict(input=input)
|
||||||
|
|||||||
Reference in New Issue
Block a user