mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
0.9.7
This commit is contained in:
parent
4fd27784f8
commit
ea05fc5f62
@ -308,7 +308,11 @@ class Image(AbstractInput):
|
||||
return array
|
||||
|
||||
def process_example(self, example):
|
||||
if os.path.exists(example):
|
||||
return preprocessing_utils.convert_file_to_base64(example)
|
||||
else:
|
||||
return example
|
||||
|
||||
|
||||
class Microphone(AbstractInput):
|
||||
|
||||
|
@ -11,15 +11,15 @@ const radio = {
|
||||
}
|
||||
html += "</div>"
|
||||
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]);
|
||||
}
|
||||
},
|
||||
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;
|
||||
|
BIN
dist/gradio-0.9.6-py3-none-any.whl
vendored
BIN
dist/gradio-0.9.6-py3-none-any.whl
vendored
Binary file not shown.
BIN
dist/gradio-0.9.6.tar.gz
vendored
BIN
dist/gradio-0.9.6.tar.gz
vendored
Binary file not shown.
BIN
dist/gradio-0.9.7-py3-none-any.whl
vendored
Normal file
BIN
dist/gradio-0.9.7-py3-none-any.whl
vendored
Normal file
Binary file not shown.
BIN
dist/gradio-0.9.7.tar.gz
vendored
Normal file
BIN
dist/gradio-0.9.7.tar.gz
vendored
Normal file
Binary file not shown.
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user