Skip to content

Commit

Permalink
Add predict_raw method to PretrainedCustomModel
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravarthik27 committed Nov 20, 2023
1 parent 0ebe067 commit 2206afa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions langtest/modelhandler/custom_modelhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ def predict(self, text: str, *args, **kwargs):
logger.error(e)
raise e

def predict_raw(self, text: str, *args, **kwargs):
return self.predict(text, *args, **kwargs)

def __call__(self, text: str) -> None:
return self.predict(text=text)

Expand Down

0 comments on commit 2206afa

Please sign in to comment.