From 12e733360ea772591d8079ff4e5ea15353c914c1 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Sat, 19 Mar 2022 07:34:04 -0700 Subject: [PATCH] only Number and Label outputs are interpretable --- gradio/interpretation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradio/interpretation.py b/gradio/interpretation.py index 217480a753..ecd3e60fdc 100644 --- a/gradio/interpretation.py +++ b/gradio/interpretation.py @@ -198,7 +198,7 @@ def quantify_difference_in_label(interface, original_output, perturbed_output): score = diff(original_label, perturbed_label) return score - elif isinstance(output_component, (Textbox, Number)): + elif isinstance(output_component, Number): score = diff(post_original_output, post_perturbed_output) return score