(self, prompt)
| 47 | return text |
| 48 | |
| 49 | def predict(self, prompt): |
| 50 | chat_session = self.model.start_chat( |
| 51 | history=[] |
| 52 | ) |
| 53 | response = chat_session.send_message(prompt) |
| 54 | return self.post_process(response.text) |
| 55 | |
| 56 | def predict_nq(self, context, question, titles): |
| 57 | prompt = (f"Go through the following context and then extract the answer of the question from the context. " |
no test coverage detected