gradio
1f8e5c44 - Improve URL handling in JS Client (#8258)

Commit
1 year ago
Improve URL handling in JS Client (#8258) * amend endpoint logic * add changeset * improve url joining for local URLs * handle relative paths * use join_urls in /info to ensure correct endpoints * add relative url logic and throw error for node * tweaks * remove relative paths support (wont work) * tweak * tweak func to throw error and amend tests * tweak * accomodate . in space names * replace error with const msg * tweak tests with error var * revert map() to reduce() due to misinterpreted base URL --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Author
Parents
Loading