def _get_api()

in pyspark_huggingface/huggingface_sink.py [0:0]


    def _get_api(self):
        from huggingface_hub import HfApi

        return HfApi(token=self.token, endpoint=self.endpoint, library_name="pyspark_huggingface")