From 2efff3811f91db99fc6cba2e2508e5ccf53c97f5 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sun, 2 Apr 2023 18:45:44 -0400 Subject: [PATCH] minor updates --- README.md | 7 ++++--- scripts/system-info.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 052e2a1..c435a42 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,15 @@ # System Info tab extensions for SD Automatic WebUI -Creates a top-level **System Info** tab in Automatic WebUI with +Creates a top-level **System Info** tab in Automatic WebUI with *Note*: + - State & memory info are auto-updated every second if tab is visible (no updates are performed when tab is not visible) - All other information is updated once upon WebUI load and can be force refreshed if required -## Current information: +## Current information - Server start time - Version @@ -16,7 +17,7 @@ Creates a top-level **System Info** tab in Automatic WebUI with - Current State - Current Memory statistics -## System data: +## System data - Platform details - Torch, CUDA and GPU details diff --git a/scripts/system-info.py b/scripts/system-info.py index 03eb8d3..b80ec77 100644 --- a/scripts/system-info.py +++ b/scripts/system-info.py @@ -407,7 +407,7 @@ def on_ui_tabs(): data.pop('loras', None) js = gr.JSON(data) with gr.Column(scale = 1, min_width = 120): - timestamp = gr.Text(data['timestamp'], label = '', elem_id = 'system_info_tab_last_update') + timestamp = gr.Text(default=data['timestamp'], label = '', elem_id = 'system_info_tab_last_update') refresh_quick_btn = gr.Button('Refresh state', elem_id = 'system_info_tab_refresh_btn', visible = False).style(full_width = False) # quick refresh is used from js interval refresh_quick_btn.click(refresh_info_quick, inputs = [], outputs = [state, memory, crossattention, timestamp, js], show_progress = False) refresh_full_btn = gr.Button('Refresh data', elem_id = 'system_info_tab_refresh_full_btn', variant='primary').style(full_width = False)