diff --git a/gradio.egg-info/PKG-INFO b/gradio.egg-info/PKG-INFO index b9f1670c19..f0f1441832 100644 --- a/gradio.egg-info/PKG-INFO +++ b/gradio.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: gradio -Version: 1.4.4 +Version: 1.5.1 Summary: Python library for easily interacting with trained machine learning models Home-page: https://github.com/gradio-app/gradio-UI Author: Abubakar Abid diff --git a/gradio/interface.py b/gradio/interface.py index e2b3d35a2c..b51d96d3c1 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -478,8 +478,10 @@ def show_tip(io): relevant_tips = [] if io.interpretation is None: relevant_tips.append(strings.en["TIP_INTERPRETATION"]) - if io.embedding is None and len(io.examples)>4: + if io.embedding is None and not(io.examples is None) and len(io.examples)>4: relevant_tips.append(strings.en["TIP_EMBEDDING"]) + if len(relevant_tips)==0: + return print(random.choice(relevant_tips)) def launch_counter(): diff --git a/setup.py b/setup.py index 85b2feb2c7..84c88b281e 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: setup( name='gradio', - version='1.5.0', + version='1.5.1', include_package_data=True, description='Python library for easily interacting with trained machine learning models', author='Abubakar Abid',