update simple-table

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-08-03 08:43:36 -04:00
parent ea9d8b2323
commit 84bccc07ca
4 changed files with 47 additions and 28 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ def create_ui():
def create_modules_table(rows: list):
html = """
<table class="simple-table">
<thead">
<thead>
<tr><th>Module</th><th>Class</th><th>Device</th><th>Dtype</th><th>Quant</th><th>Params</th><th>Modules</th><th>Config</th></tr>
</thead>
<tbody>
@@ -83,7 +83,7 @@ def create_ui():
from modules import sd_detect
html = """
<table class="simple-table">
<thead">
<thead>
<tr><th>Name</th><th>Type</th><th>Detect</th><th>Pipeline</th><th>Hash</th><th>Size</th><th>MTime</th></tr>
</thead>
<tbody>
@@ -131,10 +131,10 @@ def create_ui():
with gr.Row():
model_list_btn = gr.Button(value="List models", variant='primary')
model_checkhash_btn = gr.Button(value="Calculate missing hashes", variant='secondary')
model_checkhash_btn.click(fn=sd_models.update_model_hashes, inputs=[], outputs=[models_outcome])
with gr.Row():
model_table = gr.HTML(value='', elem_id="model_list_table")
model_checkhash_btn.click(fn=sd_models.update_model_hashes, inputs=[], outputs=[model_table])
model_list_btn.click(fn=lambda: create_models_table(sd_models.checkpoints_list.values()), inputs=[], outputs=[model_table])
with gr.Tab(label="Metadata"):