class_docstr: Integration with the Cohere Python Library
class_docstr_tok: ["Integration","with","the","Cohere","Python","Library"]
docstr: connects with cohere api to predict the summary of the input text
docstr_tok: ["connects","with","cohere","api","to","predict","the","summary","of","the","input","text"]
code: def predict_text_summary(self, text):
      """
      connects with cohere api to predict the summary of the input text
  
      """
  
      args = self.model_storage.json_get("args")
  
      api_key = self._get_cohere_api_key(args)
      co = cohere.Client(api_key)
  
      response = co.summarize(text)
      text_summary = response.summary
  
      return text_summary
  
file_path: mindsdb/mindsdb/integrations/handlers/cohere_handler/cohere_handler.py
imports: import os
  from typing import Optional, Dict
  import cohere
  import pandas
  from mindsdb.utilities.config import Config
  from mindsdb.integrations.libs.base import BaseMLEngine
  from mindsdb.utilities import log
label_desc: Use image node_id 4 for calling the CohereHandler obj's underlying member method code with example usage: obj.predict_text_summary(text) and returns: text_summary