arilotter / gradio-node-fix

Fix @gradio/client in node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gradio-node-fix

Fixes runtime errors when using @gradio/client outside of a browser.

Includes a slightly modified version of the eventsource polyfill, and sets a couple props on window.

To use it, simply import "gradio-node-fix" at the top of your JS entrypoint (index.ts, index.js, etc).

About

Fix @gradio/client in node.js

License:Other


Languages

Language:JavaScript 100.0%