gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
30.56k stars 2.27k forks source link

Support `handle_file` for local paths in Deno #8464

Open pngwn opened 3 weeks ago

pngwn commented 3 weeks ago

Is your feature request related to a problem? Please describe.

The new handle_file utility provided by @gradio/client doesn't support local path in Deno. I would like to be able to use this functionality that is supported in node in a Deno environment.

Describe the solution you'd like

Support Deno.

Additional context

Sniffing a Deno environment is different to node and the FS APIs are also different. We need to add explicit support.

pngwn commented 3 weeks ago

This can be added post 1.0.

Cc @hannahblair