Spaces:
Runtime error
Runtime error
fix layout size
Browse files
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:
|