зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-29 13:06:04 +02:00
maintain: remove text analysis from display function
Этот коммит содержится в:
родитель
e4b812a397
Коммит
032eb3c3e5
@ -97,8 +97,6 @@ class AnalysisExplorer:
|
|||||||
State("left_select_id", "value"),
|
State("left_select_id", "value"),
|
||||||
State("Dropdown_select_Detector", "value"),
|
State("Dropdown_select_Detector", "value"),
|
||||||
State("setting_Text_analyse_text", "value"),
|
State("setting_Text_analyse_text", "value"),
|
||||||
State("setting_Text_model_names", "value"),
|
|
||||||
State("setting_Text_revision_numbers", "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"),
|
||||||
@ -190,45 +188,6 @@ class AnalysisExplorer:
|
|||||||
align="start",
|
align="start",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# text row 2
|
|
||||||
dbc.Row(
|
|
||||||
[
|
|
||||||
dbc.Col(
|
|
||||||
[
|
|
||||||
html.P(
|
|
||||||
"Select models for text_summary, text_sentiment, text_NER or leave blank for default:",
|
|
||||||
# style={"width": "45%"},
|
|
||||||
),
|
|
||||||
]
|
|
||||||
), #
|
|
||||||
dbc.Col(
|
|
||||||
[
|
|
||||||
html.P(
|
|
||||||
"Select model revision number for text_summary, text_sentiment, text_NER or leave blank for default:"
|
|
||||||
),
|
|
||||||
]
|
|
||||||
),
|
|
||||||
]
|
|
||||||
), # row 2
|
|
||||||
# input row 3
|
|
||||||
dbc.Row(
|
|
||||||
[
|
|
||||||
dbc.Col(
|
|
||||||
dcc.Input(
|
|
||||||
type="text",
|
|
||||||
id="setting_Text_model_names",
|
|
||||||
style={"width": "100%"},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
dbc.Col(
|
|
||||||
dcc.Input(
|
|
||||||
type="text",
|
|
||||||
id="setting_Text_revision_numbers",
|
|
||||||
style={"width": "100%"},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
]
|
|
||||||
), # row 3
|
|
||||||
],
|
],
|
||||||
), # text summary end
|
), # text summary end
|
||||||
# start emotion detector
|
# start emotion detector
|
||||||
@ -485,8 +444,6 @@ class AnalysisExplorer:
|
|||||||
current_img_value: str,
|
current_img_value: str,
|
||||||
detector_value: str,
|
detector_value: str,
|
||||||
settings_text_analyse_text: list,
|
settings_text_analyse_text: list,
|
||||||
settings_text_model_names: str,
|
|
||||||
settings_text_revision_numbers: str,
|
|
||||||
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,
|
||||||
@ -530,16 +487,6 @@ class AnalysisExplorer:
|
|||||||
detector_class = identify_function(
|
detector_class = identify_function(
|
||||||
image_copy,
|
image_copy,
|
||||||
analyse_text=analyse_text,
|
analyse_text=analyse_text,
|
||||||
model_names=(
|
|
||||||
[settings_text_model_names]
|
|
||||||
if (settings_text_model_names is not None)
|
|
||||||
else None
|
|
||||||
),
|
|
||||||
revision_numbers=(
|
|
||||||
[settings_text_revision_numbers]
|
|
||||||
if (settings_text_revision_numbers is not None)
|
|
||||||
else None
|
|
||||||
),
|
|
||||||
accept_privacy=(
|
accept_privacy=(
|
||||||
setting_privacy_env_var
|
setting_privacy_env_var
|
||||||
if setting_privacy_env_var
|
if setting_privacy_env_var
|
||||||
|
|||||||
@ -51,8 +51,6 @@ def test_right_output_analysis_summary(get_AE, get_options, monkeypatch):
|
|||||||
get_options[0],
|
get_options[0],
|
||||||
"SummaryDetector",
|
"SummaryDetector",
|
||||||
True,
|
True,
|
||||||
None,
|
|
||||||
None,
|
|
||||||
"SOME_VAR",
|
"SOME_VAR",
|
||||||
50,
|
50,
|
||||||
50,
|
50,
|
||||||
@ -74,8 +72,6 @@ def test_right_output_analysis_emotions(get_AE, get_options, monkeypatch):
|
|||||||
get_options[0],
|
get_options[0],
|
||||||
"EmotionDetector",
|
"EmotionDetector",
|
||||||
True,
|
True,
|
||||||
None,
|
|
||||||
None,
|
|
||||||
"SOME_VAR",
|
"SOME_VAR",
|
||||||
50,
|
50,
|
||||||
50,
|
50,
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user