Spaces:
Running
Running
DmitryRyumin
commited on
Commit
Β·
32a92bf
1
Parent(s):
b5ed9ff
Summary
Browse files- app/event_handlers/calculate_practical_tasks.py +28 -10
- app/tabs.py +1 -1
- config.toml +1 -1
app/event_handlers/calculate_practical_tasks.py
CHANGED
@@ -585,26 +585,44 @@ def event_handler_calculate_practical_task_blocks(
|
|
585 |
|
586 |
df = apply_rounding_and_rename_columns(b5.df_files_priority_skill_)
|
587 |
|
588 |
-
|
589 |
-
|
590 |
-
|
|
|
591 |
|
592 |
-
|
|
|
|
|
|
|
|
|
|
|
593 |
|
594 |
df_hidden = df.drop(
|
595 |
columns=config_data.Settings_SHORT_PROFESSIONAL_SKILLS
|
596 |
+ professional_skills_list
|
|
|
597 |
)
|
598 |
|
599 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
600 |
|
601 |
-
df_hidden.reset_index(inplace=True)
|
602 |
|
603 |
-
df_hidden
|
604 |
-
by=[dropdown_professional_skills], ascending=False
|
605 |
-
)
|
606 |
|
607 |
-
|
|
|
|
|
|
|
|
|
|
|
608 |
|
609 |
person_metadata = create_person_metadata(person_id, files, video_metadata)
|
610 |
|
|
|
585 |
|
586 |
df = apply_rounding_and_rename_columns(b5.df_files_priority_skill_)
|
587 |
|
588 |
+
if type_modes == config_data.Settings_TYPE_MODES[0]:
|
589 |
+
professional_skills_list = (
|
590 |
+
config_data.Settings_DROPDOWN_PROFESSIONAL_SKILLS.copy()
|
591 |
+
)
|
592 |
|
593 |
+
professional_skills_list.remove(dropdown_professional_skills)
|
594 |
+
|
595 |
+
del_cols = []
|
596 |
+
elif type_modes == config_data.Settings_TYPE_MODES[1]:
|
597 |
+
professional_skills_list = []
|
598 |
+
del_cols = config_data.Settings_DROPDOWN_MBTI_DEL_COLS_WEBCAM
|
599 |
|
600 |
df_hidden = df.drop(
|
601 |
columns=config_data.Settings_SHORT_PROFESSIONAL_SKILLS
|
602 |
+ professional_skills_list
|
603 |
+
+ del_cols
|
604 |
)
|
605 |
|
606 |
+
if type_modes == config_data.Settings_TYPE_MODES[0]:
|
607 |
+
df_hidden = df_hidden.sort_values(
|
608 |
+
by=[dropdown_professional_skills], ascending=False
|
609 |
+
)
|
610 |
+
elif type_modes == config_data.Settings_TYPE_MODES[1]:
|
611 |
+
df_hidden = df_hidden.melt(
|
612 |
+
var_name="Professional Skill", value_name="Summary Score"
|
613 |
+
)
|
614 |
+
df_hidden = df_hidden.sort_values(by=["Summary Score"], ascending=False)
|
615 |
|
616 |
+
df_hidden.reset_index(drop=True, inplace=True)
|
617 |
|
618 |
+
df_hidden.to_csv(config_data.Filenames_PT_SKILLS_SCORES)
|
|
|
|
|
619 |
|
620 |
+
if type_modes == config_data.Settings_TYPE_MODES[0]:
|
621 |
+
person_id = (
|
622 |
+
int(df_hidden.iloc[0][config_data.Dataframes_PT_SCORES[0][0]]) - 1
|
623 |
+
)
|
624 |
+
elif type_modes == config_data.Settings_TYPE_MODES[1]:
|
625 |
+
person_id = 0
|
626 |
|
627 |
person_metadata = create_person_metadata(person_id, files, video_metadata)
|
628 |
|
app/tabs.py
CHANGED
@@ -223,7 +223,7 @@ def app_tab():
|
|
223 |
)
|
224 |
|
225 |
threshold_professional_skills = number_create_ui(
|
226 |
-
value=0.
|
227 |
minimum=0.0,
|
228 |
maximum=1.0,
|
229 |
step=0.01,
|
|
|
223 |
)
|
224 |
|
225 |
threshold_professional_skills = number_create_ui(
|
226 |
+
value=0.5,
|
227 |
minimum=0.0,
|
228 |
maximum=1.0,
|
229 |
step=0.01,
|
config.toml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
[AppSettings]
|
2 |
-
APP_VERSION = "0.10.
|
3 |
SERVER_NAME = "127.0.0.1"
|
4 |
PORT = 7860
|
5 |
CSS_PATH = "app.css"
|
|
|
1 |
[AppSettings]
|
2 |
+
APP_VERSION = "0.10.6"
|
3 |
SERVER_NAME = "127.0.0.1"
|
4 |
PORT = 7860
|
5 |
CSS_PATH = "app.css"
|