diff --git a/gradio/interface.py b/gradio/interface.py index 6e0e987625..a9451f238d 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -549,13 +549,14 @@ class Interface: def integrate(self, comet_ml=None): - comet_ml.log_other("Created from", "Gradio") - if self.share_url is not None: - comet_ml.log_text("gradio: " + self.share_url) - comet_ml.end() - else: - comet_ml.log_text("gradio: " + self.local_url) - comet_ml.end() + if comet_ml is not None: + comet_ml.log_other("Created from", "Gradio") + if self.share_url is not None: + comet_ml.log_text("gradio: " + self.share_url) + comet_ml.end() + else: + comet_ml.log_text("gradio: " + self.local_url) + comet_ml.end() def show_tip(io): diff --git a/setup.py b/setup.py index f1c9c8e372..81da97e70f 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: setup( name='gradio', - version='2.0.2', + version='2.0.3', include_package_data=True, description='Python library for easily interacting with trained machine learning models', author='Abubakar Abid',