From af7d0c0655940d35ebab4361c43952063029008a Mon Sep 17 00:00:00 2001 From: dawoodkhan82 Date: Mon, 14 Sep 2020 13:19:22 -0400 Subject: [PATCH] return statement fix --- gradio/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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():