UI: fix obsolete analyze_test keyword

Этот коммит содержится в:
Inga Ulusoy 2025-10-17 14:41:57 +02:00
родитель af97981547
Коммит 4a04233536
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: BDC64F2E85CF8272
2 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -52,7 +52,6 @@ def test_right_output_analysis_emotions(get_AE, get_options, monkeypatch):
"EmotionDetector",
"summary",
"Some question",
True,
"SOME_VAR",
50,
50,