mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
fixed syntax error
This commit is contained in:
parent
d8a6baccad
commit
4fd27784f8
@ -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