fix: Fix type in FARMReader's save_to_remote (#3952)

This commit is contained in:
bogdankostic 2023-01-26 12:27:35 +01:00 committed by GitHub
parent b945eaeabd
commit addebcd256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -744,7 +744,7 @@ class FARMReader(BaseReader):
self.inferencer.processor.save(directory)
def save_to_remote(
self, repo_id: str, private: Optional[bool] = None, commit_message: str = "Add new model to Hugging Face."
self, repo_id: str, private: bool = False, commit_message: str = "Add new model to Hugging Face."
):
"""
Saves the Reader model to Hugging Face Model Hub with the given model_name. For this to work: