Spaces:
Runtime error
Runtime error
fix layout size
Browse files
app.py
CHANGED
@@ -148,7 +148,7 @@ with gr.Blocks() as demo:
|
|
148 |
feature_names=["age", "bmi", "hba1c", "glucose"],
|
149 |
)
|
150 |
|
151 |
-
fig2 = plt.figure(figsize=(3,
|
152 |
fig2.tight_layout()
|
153 |
plt.gca().set_position((0, 0, 1, 1))
|
154 |
plt.title("SHAP Waterfall Plot") # Optionally set a title for the SHAP plot
|
|
|
148 |
feature_names=["age", "bmi", "hba1c", "glucose"],
|
149 |
)
|
150 |
|
151 |
+
fig2 = plt.figure(figsize=(3, 2)) # Create a new figure for SHAP plot
|
152 |
fig2.tight_layout()
|
153 |
plt.gca().set_position((0, 0, 1, 1))
|
154 |
plt.title("SHAP Waterfall Plot") # Optionally set a title for the SHAP plot
|