From 2f454e33f91a31b493e90407d62da6c3894e72fb Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Mon, 1 Jul 2024 12:27:54 +0530 Subject: [PATCH] remove auto detect on translation source for ghana nlp --- recipes/Translation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/Translation.py b/recipes/Translation.py index 1e2960f7a..75e0f7d0c 100644 --- a/recipes/Translation.py +++ b/recipes/Translation.py @@ -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):