diff --git a/gradio/interface.py b/gradio/interface.py index 18a7c7a230..519de87ff6 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -495,9 +495,9 @@ class Interface: def explain(self, input): if self.explain_by == "default": - self.simple_explanation(input) + return self.simple_explanation(input) else: - self.explain_by(input) + return self.explain_by(input) def reset_all(): for io in Interface.get_instances():