new
Browse files95 unmodified lines969798991001019910310010110210310410510610795 unmodified lines this.totalPages = data.totalPages; }, async getModels(page, sort, style) { const res = await fetch( `http://localhost:7860/api/models?page=${page}&sort=${sort}&style=${style}` ); // const res = await fetch( // `https://huggingface-projects-diffusers-gallery-bot.hf.space/api/models?page=${page}&sort=${sort}&style=${style}` // `http://localhost:7860/api/models?page=${page}&sort=${sort}&style=${style}` // ); const res = await fetch( `https://huggingface-projects-diffusers-gallery-bot.hf.space/api/models?page=${page}&sort=${sort}&style=${style}` ); const data = await res.json(); const models = data.models.map((model) => ({ id: model.id,index.html+4-4