    def predict(self, inputs: Any) -> Any:
        """
        Do prediction. The eval mode model passes in the input value and get the outputs.

        Args:
            inputs (`Any`):
                Inference inputs by the model.

        Returns:
            (`Any`)
                Output result.
        """
        self.model.eval()
        return self.model(inputs)
Do prediction. The eval mode model passes in the input value and get the outputs.

Args:
inputs (`Any`):
Inference inputs by the model.

Returns:
(`Any`)
Output result.
towhee/trainer/trainer.py