Spaces:
Runtime error
Runtime error
paragon-analytics
commited on
Commit
Β·
6561dd9
1
Parent(s):
1c0f660
Update app.py
Browse files
app.py
CHANGED
@@ -90,8 +90,7 @@ def adr_predict(x):
|
|
90 |
# shap_scores = interpretation_function(str(x).lower())
|
91 |
|
92 |
shap_values = explainer(str(x).lower(), fixed_context=1)
|
93 |
-
plot = shap.plots.text(shap_values[0],
|
94 |
-
order=shap.Explanation.abs, show_data='auto', show=False)
|
95 |
|
96 |
plt.tight_layout()
|
97 |
local_plot = plt.gcf()
|
|
|
90 |
# shap_scores = interpretation_function(str(x).lower())
|
91 |
|
92 |
shap_values = explainer(str(x).lower(), fixed_context=1)
|
93 |
+
plot = shap.plots.text(shap_values[0], display=False)
|
|
|
94 |
|
95 |
plt.tight_layout()
|
96 |
local_plot = plt.gcf()
|