    def get_file(self, file_path: str, tag: str) -> requests.Response:
        """
        Get a file from a repo.

        Args:
            file_path (`str`):
                filepath of the file to get.
            tag (`str`):
                The tag name.

        Returns:
            (`Response`)
                A file content in the file_path.

        Raises:
            (`HTTPError`)
                Raise error in request.
        """
        url = f'{self._root}/api/v1/repos/{self._author}/{self._repo}/raw/{file_path}?ref={tag}'
        response = requests.get(url, stream=True)
        if response.status_code != 200:
            url = f'{self._root}/api/v1/repos/{self._author}/{self._repo}/raw/%2F{file_path}?ref={tag}'
            response = requests.get(url, stream=True)
        return response
Get a file from a repo.

Args:
file_path (`str`):
filepath of the file to get.
tag (`str`):
The tag name.

Returns:
(`Response`)
A file content in the file_path.

Raises:
(`HTTPError`)
Raise error in request.
towhee/utils/hub_utils.py