Spaces:
Sleeping
Sleeping
hackerbyhobby
commited on
updated app4
Browse files
app.py
CHANGED
@@ -32,6 +32,11 @@ def predict_heart_failure(age_category, alcohol_drinkers, chest_scan, covid_posi
|
|
32 |
# Create a DataFrame with the required feature names
|
33 |
input_df = pd.DataFrame([input_data])
|
34 |
|
|
|
|
|
|
|
|
|
|
|
35 |
# Ensure all required features are present
|
36 |
for feature in feature_names:
|
37 |
if feature not in input_df.columns:
|
@@ -50,6 +55,8 @@ def predict_heart_failure(age_category, alcohol_drinkers, chest_scan, covid_posi
|
|
50 |
|
51 |
|
52 |
|
|
|
|
|
53 |
# Define Gradio inputs
|
54 |
gradio_inputs = [
|
55 |
gr.Radio(
|
|
|
32 |
# Create a DataFrame with the required feature names
|
33 |
input_df = pd.DataFrame([input_data])
|
34 |
|
35 |
+
# Configure pandas to display all columns
|
36 |
+
pd.set_option('display.max_columns', None) # Display all columns
|
37 |
+
pd.set_option('display.width', None) # Disable line-wrapping for wide DataFrames
|
38 |
+
|
39 |
+
|
40 |
# Ensure all required features are present
|
41 |
for feature in feature_names:
|
42 |
if feature not in input_df.columns:
|
|
|
55 |
|
56 |
|
57 |
|
58 |
+
|
59 |
+
|
60 |
# Define Gradio inputs
|
61 |
gradio_inputs = [
|
62 |
gr.Radio(
|