mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
fixed syntax error
This commit is contained in:
parent
81977b40d8
commit
d1887993f3
@ -308,11 +308,12 @@ class Image(AbstractInput):
|
|||||||
return array
|
return array
|
||||||
|
|
||||||
def process_example(self, example):
|
def process_example(self, example):
|
||||||
if os.path.exists(example)
|
if os.path.exists(example):
|
||||||
return preprocessing_utils.convert_file_to_base64(example)
|
return preprocessing_utils.convert_file_to_base64(example)
|
||||||
else:
|
else:
|
||||||
return example
|
return example
|
||||||
|
|
||||||
|
|
||||||
class Microphone(AbstractInput):
|
class Microphone(AbstractInput):
|
||||||
|
|
||||||
def preprocess(self, inp):
|
def preprocess(self, inp):
|
||||||
|
Loading…
Reference in New Issue
Block a user