Merge branch 'master' of github.com:gradio-app/gradio-UI

This commit is contained in:
aliabd 2020-07-02 14:01:35 -07:00
commit e7e9b4e837

View File

@ -308,7 +308,10 @@ class Image(AbstractInput):
return array return array
def process_example(self, example): 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): class Microphone(AbstractInput):