mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
workaround for + in spaces
This commit is contained in:
parent
24405444f1
commit
5a25bc27f1
@ -447,6 +447,11 @@
|
||||
var len_outputs = {{ len_outputs }};
|
||||
|
||||
var url = window.location.href;
|
||||
// workaround for spaces issue
|
||||
if (url.includes("hf.space")) {
|
||||
url = url.slice(0,-3) + "+/api"
|
||||
}
|
||||
|
||||
const stripTrailingSlash = (str) => {
|
||||
return str.endsWith('/') ?
|
||||
str.slice(0, -1) :
|
||||
|
Loading…
x
Reference in New Issue
Block a user