mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
only Number and Label outputs are interpretable
This commit is contained in:
parent
e95a4b3017
commit
12e733360e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user