mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
Merge branch 'master' of github.com:gradio-app/gradio-UI
This commit is contained in:
commit
e7e9b4e837
@ -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):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user