コード例 #1
0
ファイル: inputs.py プロジェクト: ylvaldes/gradio
 def process_example(self, example):
     return preprocessing_utils.convert_file_to_base64(example)
コード例 #2
0
ファイル: inputs.py プロジェクト: ylvaldes/gradio
 def process_example(self, example):
     if os.path.exists(example):
         return preprocessing_utils.convert_file_to_base64(example)
     else:
         return example