Spaces:
Sleeping
Sleeping
hackerbyhobby
commited on
updated app
Browse files
app.py
CHANGED
@@ -26,9 +26,9 @@ def preprocess_data(data):
|
|
26 |
feature_names = numerical_cols + list(preprocessor.named_transformers_['cat'].get_feature_names_out(categorical_cols))
|
27 |
return pd.DataFrame(processed_data, columns=feature_names)
|
28 |
|
29 |
-
def process_manual_input(**
|
30 |
-
# Create a DataFrame for a single patient from
|
31 |
-
input_data = pd.DataFrame([
|
32 |
|
33 |
# Preprocess the data
|
34 |
processed_data = preprocess_data(input_data)
|
|
|
26 |
feature_names = numerical_cols + list(preprocessor.named_transformers_['cat'].get_feature_names_out(categorical_cols))
|
27 |
return pd.DataFrame(processed_data, columns=feature_names)
|
28 |
|
29 |
+
def process_manual_input(**kwargs):
|
30 |
+
# Create a DataFrame for a single patient from keyword arguments
|
31 |
+
input_data = pd.DataFrame([kwargs])
|
32 |
|
33 |
# Preprocess the data
|
34 |
processed_data = preprocess_data(input_data)
|