From 25977b36c8645291af653e08c1db9d3999a77dcb Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Sat, 13 Nov 2021 00:36:41 -0600 Subject: [PATCH] refactored flagging --- gradio/interface.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gradio/interface.py b/gradio/interface.py index a18a06f56d..9473009a88 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -179,10 +179,9 @@ class Interface: self.allow_flagging = allow_flagging if allow_flagging is not None else os.getenv("GRADIO_ALLOW_FLAGGING", "True")=="True" self.analytics_enabled = analytics_enabled if analytics_enabled is not None else os.getenv("GRADIO_ANALYTICS_ENABLED", "True")=="True" - if self.allow_flagging: - self.flagging_options = flagging_options - self.flagging_handler: FlaggingHandler = flagging_handler - self.flagging_handler.update_kwargs(interface=self, flagging_dir=flagging_dir) + self.flagging_options = flagging_options + self.flagging_handler: FlaggingHandler = flagging_handler + self.flagging_handler.update_kwargs(interface=self, flagging_dir=flagging_dir) self.encrypt = encrypt Interface.instances.add(self)