Skip to content

Commit

Permalink
remove auto detect on translation source for ghana nlp
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Jul 1, 2024
1 parent d729aa6 commit 2f454e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions recipes/Translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,13 @@ def render_form_v2(self):
model=translation_model,
label=f"###### {field_title_desc(self.RequestModel, 'translation_source')}",
key="translation_source",
allow_none=True,
allow_none=translation_model.supports_auto_detect,
)
with col2:
translation_language_selector(
model=translation_model,
label=f"###### {field_title_desc(self.RequestModel, 'translation_target')}",
key="translation_target",
allow_none=translation_model.supports_auto_detect,
)

def render_settings(self):
Expand Down

0 comments on commit 2f454e3

Please sign in to comment.