Skip to content

Commit

Permalink
Add defaults to the function
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj0517 committed Sep 24, 2024
1 parent 732a962 commit aa11c47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/translation/nllb_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def update_model(self,
model_size: str,
src_lang: str,
tgt_lang: str,
progress: gr.Progress
progress: gr.Progress = gr.Progress()
):
if model_size != self.current_model_size or self.model is None:
print("\nInitializing NLLB Model..\n")
Expand Down
2 changes: 1 addition & 1 deletion modules/translation/translation_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def update_model(self,
model_size: str,
src_lang: str,
tgt_lang: str,
progress: gr.Progress
progress: gr.Progress = gr.Progress()
):
pass

Expand Down

0 comments on commit aa11c47

Please sign in to comment.