hackerbyhobby commited on
Commit
096359d
·
unverified ·
1 Parent(s): b49f7c8

updated app4

Browse files
Files changed (1) hide show
  1. app.py +7 -0
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(