chore: remove fill_in_default_disease function in version 6
Browse files
app.py
CHANGED
@@ -65,29 +65,6 @@ def display_default_symptoms_fn(default_disease: str) -> Dict:
|
|
65 |
}
|
66 |
|
67 |
|
68 |
-
# <!> This function has been paused due to UI issues.
|
69 |
-
|
70 |
-
# def fill_in_fn(default_disease: str, *checkbox_symptoms: Tuple[str]) -> Dict:
|
71 |
-
# """
|
72 |
-
# Fill in the gr.CheckBoxGroup list with predefined symptoms of a selected default disease.
|
73 |
-
# Args:
|
74 |
-
# default_disease (str): The default selected disease
|
75 |
-
# *checkbox_symptoms (Tuple[str]): Existing checked symptoms
|
76 |
-
# Returns:
|
77 |
-
# dict: The updated gr.CheckBoxesGroup.
|
78 |
-
# """
|
79 |
-
#
|
80 |
-
# # Figure out the symptoms of the disease, selected by the user
|
81 |
-
# df = pd.read_csv(TRAINING_FILENAME)
|
82 |
-
# df_filtred = df[df[TARGET_COLUMNS[1]] == default_disease]
|
83 |
-
# symptoms = pretty_print(df_filtred.columns[df_filtred.eq(1).any()].to_list())
|
84 |
-
# # Check if there are existing symptoms, in the CheckbBxGroup list
|
85 |
-
# if any(lst for lst in checkbox_symptoms if lst):
|
86 |
-
# for sublist in checkbox_symptoms:
|
87 |
-
# symptoms.extend(sublist)
|
88 |
-
# return {box: symptoms for box in check_boxes}
|
89 |
-
|
90 |
-
|
91 |
def get_user_symptoms_from_checkboxgroup(checkbox_symptoms: List) -> np.array:
|
92 |
"""
|
93 |
Convert the user symptoms into a binary vector representation.
|
|
|
65 |
}
|
66 |
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
def get_user_symptoms_from_checkboxgroup(checkbox_symptoms: List) -> np.array:
|
69 |
"""
|
70 |
Convert the user symptoms into a binary vector representation.
|