Spaces:
Runtime error
Runtime error
Commit
Β·
a2e20e9
1
Parent(s):
f057421
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def adr_predict(x):
|
|
90 |
|
91 |
# shap_scores = interpretation_function(str(x).lower())
|
92 |
|
93 |
-
shap_values = explainer(str(x).lower(), fixed_context=1)
|
94 |
plot = shap.plots.text(shap_values[0], display=False)
|
95 |
|
96 |
plt.tight_layout()
|
|
|
90 |
|
91 |
# shap_scores = interpretation_function(str(x).lower())
|
92 |
|
93 |
+
shap_values = explainer([str(x).lower()], fixed_context=1)
|
94 |
plot = shap.plots.text(shap_values[0], display=False)
|
95 |
|
96 |
plt.tight_layout()
|