Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 10be28a125 |
@@ -8,4 +8,5 @@ class Summarizer(PrecompiledProgram):
|
|||||||
self.predict = dspy.Predict("input -> summary")
|
self.predict = dspy.Predict("input -> summary")
|
||||||
|
|
||||||
def forward(self, input: str) -> str:
|
def forward(self, input: str) -> str:
|
||||||
|
input = input.strip()
|
||||||
return self.predict(input=input)
|
return self.predict(input=input)
|
||||||
|
|||||||
Reference in New Issue
Block a user