mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
Fix spaces load error (#8415)
* changes * add changeset * changes --------- Co-authored-by: Ali Abid <aliabid94@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
b67f7ff8f9
commit
227de35298
6
.changeset/strong-years-battle.md
Normal file
6
.changeset/strong-years-battle.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/client": minor
|
||||
"gradio": minor
|
||||
---
|
||||
|
||||
feat:Fix spaces load error
|
@ -101,6 +101,11 @@ export async function resolve_config(
|
||||
let config = await response.json();
|
||||
config.path = config.path ?? "";
|
||||
config.root = endpoint;
|
||||
config.dependencies?.forEach((dep: any, i: number) => {
|
||||
if (dep.id === undefined) {
|
||||
dep.id = i;
|
||||
}
|
||||
});
|
||||
return config;
|
||||
} else if (response?.status === 401) {
|
||||
throw new Error(UNAUTHORIZED_MSG);
|
||||
|
Loading…
Reference in New Issue
Block a user