saad177 commited on
Commit
c14fc38
1 Parent(s): bf3a8f9

fix layout size

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -146,10 +146,11 @@ with gr.Blocks() as demo:
146
  )
147
 
148
  fig2 = plt.figure(figsize=(12, 6)) # Create a new figure for SHAP plot
 
 
149
  shap.waterfall_plot(
150
  shap_explanation
151
  ) # Set show=False to prevent immediate display
152
- plt.title("SHAP Waterfall Plot") # Optionally set a title for the SHAP plot
153
 
154
  ## save user's data in hopsworks
155
  if consent_input == True:
 
146
  )
147
 
148
  fig2 = plt.figure(figsize=(12, 6)) # Create a new figure for SHAP plot
149
+ plt.title("SHAP Waterfall Plot") # Optionally set a title for the SHAP plot
150
+ plt.tight_layout()
151
  shap.waterfall_plot(
152
  shap_explanation
153
  ) # Set show=False to prevent immediate display
 
154
 
155
  ## save user's data in hopsworks
156
  if consent_input == True: