diff --git a/build/lib/gradio/inputs.py b/build/lib/gradio/inputs.py index 959a217bb7..8d6379bbcd 100644 --- a/build/lib/gradio/inputs.py +++ b/build/lib/gradio/inputs.py @@ -308,7 +308,11 @@ class Image(AbstractInput): return array def process_example(self, example): - return preprocessing_utils.convert_file_to_base64(example) + if os.path.exists(example): + return preprocessing_utils.convert_file_to_base64(example) + else: + return example + class Microphone(AbstractInput): diff --git a/build/lib/gradio/static/js/interfaces/input/radio.js b/build/lib/gradio/static/js/interfaces/input/radio.js index 5f18ca1d27..f03d55d654 100644 --- a/build/lib/gradio/static/js/interfaces/input/radio.js +++ b/build/lib/gradio/static/js/interfaces/input/radio.js @@ -11,15 +11,15 @@ const radio = { } html += "" this.target.html(html); + this.target.find("input:first-child").prop("checked", true); }, submit: function() { checked_val = this.target.find("input:checked").val(); - if (checked_val) { - this.io_master.input(this.id, this.choices[checked_val]); - } + this.io_master.input(this.id, this.choices[checked_val]); }, clear: function() { this.target.find("input").prop("checked", false); + this.target.find("input:first-child").prop("checked", true); }, load_example: function(data) { let child = this.choices.indexOf(data) + 1; diff --git a/dist/gradio-0.9.6-py3-none-any.whl b/dist/gradio-0.9.6-py3-none-any.whl deleted file mode 100644 index a6750044bb..0000000000 Binary files a/dist/gradio-0.9.6-py3-none-any.whl and /dev/null differ diff --git a/dist/gradio-0.9.6.tar.gz b/dist/gradio-0.9.6.tar.gz deleted file mode 100644 index e19b5821bf..0000000000 Binary files a/dist/gradio-0.9.6.tar.gz and /dev/null differ diff --git a/dist/gradio-0.9.7-py3-none-any.whl b/dist/gradio-0.9.7-py3-none-any.whl new file mode 100644 index 0000000000..b57c57b3a7 Binary files /dev/null and b/dist/gradio-0.9.7-py3-none-any.whl differ diff --git a/dist/gradio-0.9.7.tar.gz b/dist/gradio-0.9.7.tar.gz new file mode 100644 index 0000000000..cdc296c1b9 Binary files /dev/null and b/dist/gradio-0.9.7.tar.gz differ diff --git a/gradio.egg-info/PKG-INFO b/gradio.egg-info/PKG-INFO index e0b93d6744..a9992a24f6 100644 --- a/gradio.egg-info/PKG-INFO +++ b/gradio.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: gradio -Version: 0.9.6 +Version: 0.9.7 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/setup.py b/setup.py index 9a7385d0c6..c646380767 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: setup( name='gradio', - version='0.9.6', + version='0.9.7', include_package_data=True, description='Python library for easily interacting with trained machine learning models', author='Abubakar Abid',