From 4a04233536518e03989f8d5b7cf492f02cdb9072 Mon Sep 17 00:00:00 2001 From: Inga Ulusoy Date: Fri, 17 Oct 2025 14:41:57 +0200 Subject: [PATCH] UI: fix obsolete analyze_test keyword --- ammico/display.py | 6 ------ ammico/test/test_display.py | 1 - 2 files changed, 7 deletions(-) diff --git a/ammico/display.py b/ammico/display.py index 5b860a7..b916dbf 100644 --- a/ammico/display.py +++ b/ammico/display.py @@ -100,7 +100,6 @@ class AnalysisExplorer: State("Dropdown_select_Detector", "value"), State("Dropdown_analysis_type", "value"), State("textarea_questions", "value"), - State("setting_Text_analyse_text", "value"), State("setting_privacy_env_var", "value"), State("setting_Emotion_emotion_threshold", "value"), State("setting_Emotion_race_threshold", "value"), @@ -466,7 +465,6 @@ class AnalysisExplorer: detector_value: str, analysis_type_value: str, textarea_questions_value: str, - settings_text_analyse_text: list, setting_privacy_env_var: str, setting_emotion_emotion_threshold: int, setting_emotion_race_threshold: int, @@ -521,12 +519,8 @@ class AnalysisExplorer: identify_function = identify_dict[detector_value] if detector_value == "TextDetector": - analyse_text = ( - True if settings_text_analyse_text == ["Analyse text"] else False - ) detector_class = identify_function( image_copy, - analyse_text=analyse_text, accept_privacy=( setting_privacy_env_var if setting_privacy_env_var diff --git a/ammico/test/test_display.py b/ammico/test/test_display.py index 3cdb333..d1b4cae 100644 --- a/ammico/test/test_display.py +++ b/ammico/test/test_display.py @@ -52,7 +52,6 @@ def test_right_output_analysis_emotions(get_AE, get_options, monkeypatch): "EmotionDetector", "summary", "Some question", - True, "SOME_VAR", 50, 50,