Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind fetch and stream in JS client #8714

Merged
merged 16 commits into from
Jul 11, 2024
6 changes: 6 additions & 0 deletions .changeset/shaky-numbers-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/client": patch
"gradio": patch
---

fix:Bind `fetch` and `stream` in JS client
2 changes: 2 additions & 0 deletions client/js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ export class Client {
this.resolve_cookies = resolve_cookies.bind(this);
this.upload = upload.bind(this);
this.handle_space_success = this.handle_space_success.bind(this);
this.fetch = this.fetch.bind(this);
this.stream = this.stream.bind(this);
}

private async init(): Promise<void> {
Expand Down