From 13ee3abcb6485de48fe1b8533ae71db7753bc502 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Wed, 1 Jul 2020 11:48:59 -0500 Subject: [PATCH] made string names of interfaces case insensitive --- gradio/interface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradio/interface.py b/gradio/interface.py index b75bc9bd32..66cf72918e 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -40,7 +40,7 @@ class Interface: """ def get_input_instance(iface): if isinstance(iface, str): - return gradio.inputs.shortcuts[iface] + return gradio.inputs.shortcuts[iface.lower()] elif isinstance(iface, gradio.inputs.AbstractInput): return iface else: @@ -49,7 +49,7 @@ class Interface: def get_output_instance(iface): if isinstance(iface, str): - return gradio.outputs.shortcuts[iface] + return gradio.outputs.shortcuts[iface.lower()] elif isinstance(iface, gradio.outputs.AbstractOutput): return iface else: @@ -264,7 +264,7 @@ class Interface: if share: try: share_url = networking.setup_tunnel(server_port) - print(share_url) + print("External URL:", share_url) except RuntimeError: share_url = None if self.verbose: