mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
refresh
This commit is contained in:
+12
-2
@@ -141,12 +141,22 @@ def create_ui():
|
||||
model_checkhash_btn = gr.Button(value="Calculate hash for all models (may take a long time)", variant='primary')
|
||||
model_checkhash_btn.click(fn=sd_models.update_model_hashes, inputs=[], outputs=[models_outcome])
|
||||
with gr.Row():
|
||||
model_table = gr.DataFrame(model_data, label = 'Model data', show_label = True, interactive = False, wrap = True, overflow_row_behaviour = 'paginate', max_rows = 10, headers = model_headers)
|
||||
model_table = gr.DataFrame(
|
||||
data = model_data,
|
||||
headers = model_headers,
|
||||
label = 'Model data',
|
||||
show_label = True,
|
||||
interactive = False,
|
||||
wrap = True,
|
||||
overflow_row_behaviour = 'paginate',
|
||||
max_rows = 50,
|
||||
)
|
||||
|
||||
def list_models():
|
||||
total_size = 0
|
||||
model_data.clear()
|
||||
txt = ''
|
||||
for m in sd_models.checkpoints_list.values():
|
||||
txt = ''
|
||||
try:
|
||||
stat = os.stat(m.filename)
|
||||
m_name = m.name.replace('.ckpt', '').replace('.safetensors', '')
|
||||
|
||||
Reference in New Issue
Block a user