Implemented as stream without a streamer function.
(self, prompt, image_path, inference_dict=None)
| 5536 | self.tokenizer = Utilities().get_default_tokenizer() |
| 5537 | |
| 5538 | def inference(self, prompt, image_path, inference_dict=None): |
| 5539 | """ Implemented as stream without a streamer function. """ |
| 5540 | |
| 5541 | return self.stream(prompt,image_path, inference_dict=inference_dict, |
| 5542 | streamer=None, no_stream=True) |
| 5543 | |
| 5544 | def stream(self, prompt, image_path, add_context=None, add_prompt_engineering=None, api_key=None, |
| 5545 | inference_dict=None, streamer=None,no_stream=False): |