mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
video ui update with modernui support
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+5
-6
@@ -274,12 +274,11 @@ function submit_framepack(...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`);
|
||||
const modernEl = gradioApp().querySelector('.video_output.fade-in');
|
||||
let id = modernEl ? modernEl.id : args[0];
|
||||
id = id.replace('video-selector-', '');
|
||||
log('submitVideoWrapper', id);
|
||||
const btn = gradioApp().getElementById(`${id}_generate_btn`);
|
||||
if (btn) btn.click();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user