mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
framepack state management
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -95,7 +95,7 @@ def wrap_gradio_call(func, extra_outputs=None, add_stats=False, name=None):
|
||||
if ram['used'] > 0:
|
||||
cpu += f"| RAM {ram['used']} GB"
|
||||
cpu += f" {round(100.0 * ram['used'] / ram['total'])}%" if ram['total'] > 0 else ''
|
||||
if isinstance(res, list):
|
||||
if isinstance(res, list) and isinstance(res[-1], str):
|
||||
res[-1] += f"<div class='performance'><p>Time: {elapsed_text} | {summary} {gpu} {cpu}</p></div>"
|
||||
return tuple(res)
|
||||
return f
|
||||
|
||||
+1
-1
@@ -178,7 +178,7 @@ def create_ui():
|
||||
# generate function
|
||||
video_dict = dict(
|
||||
fn=call_queue.wrap_gradio_gpu_call(run_video, extra_outputs=[None, '', ''], name='Video'),
|
||||
_js="submit_video",
|
||||
_js="submit_framepack",
|
||||
inputs=video_args,
|
||||
outputs=[gallery, video, gen_info, html_info, html_log],
|
||||
show_progress=False,
|
||||
|
||||
Reference in New Issue
Block a user