minor updates

pull/18/head
Vladimir Mandic 2023-04-02 18:45:44 -04:00
parent 0d70f25548
commit 2efff3811f
2 changed files with 5 additions and 4 deletions

View File

@ -1,14 +1,15 @@
# System Info tab extensions for SD Automatic WebUI # 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*: *Note*:
- State & memory info are auto-updated every second if tab is visible - State & memory info are auto-updated every second if tab is visible
(no updates are performed when tab is not visible) (no updates are performed when tab is not visible)
- All other information is updated once upon WebUI load and - All other information is updated once upon WebUI load and
can be force refreshed if required can be force refreshed if required
## Current information: ## Current information
- Server start time - Server start time
- Version - Version
@ -16,7 +17,7 @@ Creates a top-level **System Info** tab in Automatic WebUI with
- Current State - Current State
- Current Memory statistics - Current Memory statistics
## System data: ## System data
- Platform details - Platform details
- Torch, CUDA and GPU details - Torch, CUDA and GPU details

View File

@ -407,7 +407,7 @@ def on_ui_tabs():
data.pop('loras', None) data.pop('loras', None)
js = gr.JSON(data) js = gr.JSON(data)
with gr.Column(scale = 1, min_width = 120): 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 = 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_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) refresh_full_btn = gr.Button('Refresh data', elem_id = 'system_info_tab_refresh_full_btn', variant='primary').style(full_width = False)