Spaces:
Running
Running
new
Browse files- index.html +4 -4
index.html
CHANGED
@@ -96,12 +96,12 @@
|
|
96 |
this.totalPages = data.totalPages;
|
97 |
},
|
98 |
async getModels(page, sort, style) {
|
99 |
-
const res = await fetch(
|
100 |
-
`http://localhost:7860/api/models?page=${page}&sort=${sort}&style=${style}`
|
101 |
-
);
|
102 |
// const res = await fetch(
|
103 |
-
//
|
104 |
// );
|
|
|
|
|
|
|
105 |
const data = await res.json();
|
106 |
const models = data.models.map((model) => ({
|
107 |
id: model.id,
|
|
|
96 |
this.totalPages = data.totalPages;
|
97 |
},
|
98 |
async getModels(page, sort, style) {
|
|
|
|
|
|
|
99 |
// const res = await fetch(
|
100 |
+
// `http://localhost:7860/api/models?page=${page}&sort=${sort}&style=${style}`
|
101 |
// );
|
102 |
+
const res = await fetch(
|
103 |
+
`https://huggingface-projects-diffusers-gallery-bot.hf.space/api/models?page=${page}&sort=${sort}&style=${style}`
|
104 |
+
);
|
105 |
const data = await res.json();
|
106 |
const models = data.models.map((model) => ({
|
107 |
id: model.id,
|