mirror of
https://github.com/vladmandic/automatic
synced 2026-09-17 16:24:33 +02:00
add builtin framepack
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user