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