Spaces:
Running
Running
Update deteksi_content.py
Browse files- deteksi_content.py +1 -1
deteksi_content.py
CHANGED
@@ -90,7 +90,7 @@ def show_deteksi_konten():
|
|
90 |
with st.spinner("Sedang memproses LIME, harap tunggu..."):
|
91 |
# Explain the prediction
|
92 |
explainer = LimeTextExplainer(class_names=['NON-HOAX', 'HOAX'])
|
93 |
-
explanation = explainer.explain_instance(lime_texts[0], predict_proba_for_lime, num_features=
|
94 |
|
95 |
# Save the LIME explanation in session state
|
96 |
st.session_state.lime_explanation = explanation.as_html()
|
|
|
90 |
with st.spinner("Sedang memproses LIME, harap tunggu..."):
|
91 |
# Explain the prediction
|
92 |
explainer = LimeTextExplainer(class_names=['NON-HOAX', 'HOAX'])
|
93 |
+
explanation = explainer.explain_instance(lime_texts[0], predict_proba_for_lime, num_features=10, num_samples=5000)
|
94 |
|
95 |
# Save the LIME explanation in session state
|
96 |
st.session_state.lime_explanation = explanation.as_html()
|