Upload stream.py with huggingface_hub
Browse files22 unmodified lines2324252627282913 unmodified lines4344454647484922 unmodified linescaching: bool = Falsecopying: bool = Falsedef _get_initator(self):"""Private method to get the correct initiator based on the streaming and caching attributes.Returns:13 unmodified linesReturns:object: The stream object."""return self._get_initator()(self.generator, gen_kwargs=self.gen_kwargs)def __iter__(self):return iter(self._get_stream())22 unmodified lines2324252627282913 unmodified lines4344454647484922 unmodified linescaching: bool = Falsecopying: bool = Falsedef _get_initiator(self):"""Private method to get the correct initiator based on the streaming and caching attributes.Returns:13 unmodified linesReturns:object: The stream object."""return self._get_initiator()(self.generator, gen_kwargs=self.gen_kwargs)def __iter__(self):return iter(self._get_stream())
stream.py+2-2