code: def auto_from_file(filename, destLang, serverEndpoint=ServerEndpoint):
      '''
      Translates contents of a file to desired language by auto detecting the source language
      :param filename: file whose contents needs translation
      :param destLang: name of the desired language for translation
      :param serverEndpoint: Tika server end point (Optional)
      :return:
      '''
      jsonOutput = doTranslate1(destLang, filename, serverEndpoint)
      return jsonOutput[1f auto_from_file(filename, destLang, serverEndpoint=ServerEndpoint):
      '''
      Translates contents of a file to desired language by auto detecting the source language
      :param filename: file whose contents needs translation
      :param destLang: name of the desired language for translation
      :param serverEndpoint: Tika server end point (Optional)
      :return:
      '''
      jsonOutput = doTranslate1(destLang, filename, serverEndpoint)
      return jsonOutput[1]
docs: Translates contents of a file to desired language by auto detecting the source language
      :param filename: file whose contents needs translation
      :param destLang: name of the desired language for translation
      :param serverEndpoint: Tika server end point (Optional)
      :return: