    def create(self, password: str, repo_class: int) -> None:
        """
        Create a repo under current account.

        Args:
            password (`str`):
                Current author's password.
            repo_class (`int`):
                The repo class

        Raises:
            (`HTTPError`)
                Raise error in request.
        """
        token_name = random.randint(0, 10000)
        r = self.create_token(token_name, password)
        token = r.json()

        data = {
            'auto_init': True,
            'default_branch': 'main',
            'description': repo_class,
            'name': self._repo,
            'private': False,
            'template': False,
            'trust_model': 'default',
            'type': repo_class
        }
        url = self._root + '/api/v1/user/repos'
        try:
            r = requests.post(url, data=data, headers={'Authorization': 'token ' + str(token['sha1'])})
            r.raise_for_status()
        except HTTPError as e:
            raise e
        finally:
            self.delete_token(str(token['id']), password)
Create a repo under current account.

Args:
password (`str`):
Current author's password.
repo_class (`int`):
The repo class

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