Update template_gradio_interface.py
Browse files
template_gradio_interface.py
CHANGED
@@ -30,7 +30,8 @@ def call_predict(inference_dict, cols_order):
|
|
30 |
# explainer = unpickle_file(inference_dict["explainer_path"])
|
31 |
|
32 |
categorical_columns = ["infill_pattern", "material"]
|
33 |
-
target_columns = ["roughness", "tension_strength", "elongation"]
|
|
|
34 |
numerical_columns = [c for c in cols_order if c not in categorical_columns]
|
35 |
|
36 |
df_train = pd.read_csv("dataset_preprocessed.csv", sep=";")
|
|
|
30 |
# explainer = unpickle_file(inference_dict["explainer_path"])
|
31 |
|
32 |
categorical_columns = ["infill_pattern", "material"]
|
33 |
+
# target_columns = ["roughness", "tension_strength", "elongation"]
|
34 |
+
target_columns = ["roughness", "tension_strength"]
|
35 |
numerical_columns = [c for c in cols_order if c not in categorical_columns]
|
36 |
|
37 |
df_train = pd.read_csv("dataset_preprocessed.csv", sep=";")
|