add builtin framepack

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-07-08 15:47:07 -04:00
parent 239c3d6dd9
commit c559e26616
53 changed files with 3996 additions and 232 deletions
+1 -1
View File
@@ -488,7 +488,6 @@ function setupExtraNetworksForTab(tabname) {
en.style.top = '13em';
en.style.transition = 'width 0.3s ease';
en.style.zIndex = 100;
// gradioApp().getElementById(`${tabname}_settings`).parentNode.style.width = `${100 - 2 - window.opts.extra_networks_sidebar_width}vw`;
gradioApp().getElementById(`${tabname}_settings`).parentNode.style.width = `calc(100vw - 2em - min(${window.opts.extra_networks_sidebar_width}vw, 50vw))`;
} else {
en.style.position = 'relative';
@@ -506,6 +505,7 @@ function setupExtraNetworksForTab(tabname) {
if (window.opts.extra_networks_card_cover === 'sidebar') en.style.width = 0;
gradioApp().getElementById(`${tabname}_settings`).parentNode.style.width = 'unset';
}
if (tabname === 'video') gradioApp().getElementById('framepack_settings').parentNode.style.width = gradioApp().getElementById(`${tabname}_settings`).parentNode.style.width;
}
});
intersectionObserver.observe(en); // monitor visibility
+19
View File
@@ -264,6 +264,25 @@ function submit_video(...args) {
return res;
}
function submit_framepack(...args) {
const id = randomId();
log('submitFramepack', id);
requestProgress(id, null, null);
window.submit_state = '';
args[0] = id;
return args;
}
function submit_video_wrapper(...args) {
log('submitVideoWrapper', args);
if (!args || args.length === 0) {
log('submitVideoWrapper: no args');
return;
}
const btn = gradioApp().getElementById(`${args[0]}_generate_btn`);
if (btn) btn.click();
}
function submit_postprocessing(...args) {
log('SubmitExtras');
clearGallery('extras');