gradio
8b4eb8ca - JS Client: Fixes cannot read properties of null (reading 'is_file') (#5035)

Commit
2 years ago
JS Client: Fixes cannot read properties of null (reading 'is_file') (#5035) * In transform_output, typeof d can be an object even if the property is_file doesn't exist on d. Therefore invoking d.is_file will error out. This commit fixes that by failing quietly if the is_file property doesn't exist on d. * Update client.ts - fixed spacing fixed spacing * add changeset --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Author
Parents
Loading