From addebcd256ab73446f3c1735dcc05be53ddef5c0 Mon Sep 17 00:00:00 2001 From: bogdankostic Date: Thu, 26 Jan 2023 12:27:35 +0100 Subject: [PATCH] fix: Fix type in FARMReader's save_to_remote (#3952) --- haystack/nodes/reader/farm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haystack/nodes/reader/farm.py b/haystack/nodes/reader/farm.py index c018e4fac..6f8725ba7 100644 --- a/haystack/nodes/reader/farm.py +++ b/haystack/nodes/reader/farm.py @@ -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: