mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
add /sdapi/v1/network
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -107,7 +107,7 @@ async function modelCardClick(id) {
|
||||
downloads: data.downloads?.toString() || '',
|
||||
creator,
|
||||
desc: data.desc || 'no description available',
|
||||
image: images.length > 0 ? images[0] : './sd_extra_networks/thumb?filename=html/card-no-preview.png',
|
||||
image: images.length > 0 ? images[0] : '/sdapi/v1/network/thumb?filename=html/card-no-preview.png',
|
||||
versions: versionsHTML || '',
|
||||
});
|
||||
el.innerHTML = modelHTML;
|
||||
|
||||
@@ -102,7 +102,7 @@ function readCardTags(el, tags) {
|
||||
}
|
||||
|
||||
function readCardDescription(page, item) {
|
||||
xhrGet('/sd_extra_networks/description', { page, item }, (data) => {
|
||||
xhrGet('/sdapi/v1/network/desc', { page, item }, (data) => {
|
||||
const tabName = getENActiveTab();
|
||||
const description = gradioApp().querySelector(`#${tabName}_description > label > textarea`);
|
||||
if (description) {
|
||||
|
||||
Reference in New Issue
Block a user