feat/enhance the multi-modal support (#8818)
This commit is contained in:
parent
7a1d6fe509
commit
e61752bd3a
267 changed files with 6263 additions and 3523 deletions
|
|
@ -72,7 +72,7 @@ class Storage:
|
|||
logging.exception("Failed to save file: %s", e)
|
||||
raise e
|
||||
|
||||
def load(self, filename: str, stream: bool = False) -> Union[bytes, Generator]:
|
||||
def load(self, filename: str, /, *, stream: bool = False) -> Union[bytes, Generator]:
|
||||
try:
|
||||
if stream:
|
||||
return self.load_stream(filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue