зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-30 13:36:04 +02:00
update test-display
Этот коммит содержится в:
родитель
483f128f96
Коммит
3018800ed4
@ -100,6 +100,7 @@ class AnalysisExplorer:
|
|||||||
State("Dropdown_select_Detector", "value"),
|
State("Dropdown_select_Detector", "value"),
|
||||||
State("Dropdown_analysis_type", "value"),
|
State("Dropdown_analysis_type", "value"),
|
||||||
State("textarea_questions", "value"),
|
State("textarea_questions", "value"),
|
||||||
|
State("setting_Text_analyse_text", "value"),
|
||||||
State("setting_privacy_env_var", "value"),
|
State("setting_privacy_env_var", "value"),
|
||||||
State("setting_Emotion_emotion_threshold", "value"),
|
State("setting_Emotion_emotion_threshold", "value"),
|
||||||
State("setting_Emotion_race_threshold", "value"),
|
State("setting_Emotion_race_threshold", "value"),
|
||||||
@ -465,6 +466,7 @@ class AnalysisExplorer:
|
|||||||
detector_value: str,
|
detector_value: str,
|
||||||
analysis_type_value: str,
|
analysis_type_value: str,
|
||||||
textarea_questions_value: str,
|
textarea_questions_value: str,
|
||||||
|
settings_text_analyse_text: list,
|
||||||
setting_privacy_env_var: str,
|
setting_privacy_env_var: str,
|
||||||
setting_emotion_emotion_threshold: int,
|
setting_emotion_emotion_threshold: int,
|
||||||
setting_emotion_race_threshold: int,
|
setting_emotion_race_threshold: int,
|
||||||
@ -519,8 +521,12 @@ class AnalysisExplorer:
|
|||||||
identify_function = identify_dict[detector_value]
|
identify_function = identify_dict[detector_value]
|
||||||
|
|
||||||
if detector_value == "TextDetector":
|
if detector_value == "TextDetector":
|
||||||
|
analyse_text = (
|
||||||
|
True if settings_text_analyse_text == ["Analyse text"] else False
|
||||||
|
)
|
||||||
detector_class = identify_function(
|
detector_class = identify_function(
|
||||||
image_copy,
|
image_copy,
|
||||||
|
analyse_text=analyse_text,
|
||||||
accept_privacy=(
|
accept_privacy=(
|
||||||
setting_privacy_env_var
|
setting_privacy_env_var
|
||||||
if setting_privacy_env_var
|
if setting_privacy_env_var
|
||||||
|
|||||||
@ -50,6 +50,9 @@ def test_right_output_analysis_emotions(get_AE, get_options, monkeypatch):
|
|||||||
get_options[3],
|
get_options[3],
|
||||||
get_options[0],
|
get_options[0],
|
||||||
"EmotionDetector",
|
"EmotionDetector",
|
||||||
|
"summary",
|
||||||
|
"Some question",
|
||||||
|
True,
|
||||||
"SOME_VAR",
|
"SOME_VAR",
|
||||||
50,
|
50,
|
||||||
50,
|
50,
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user