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

@ -3,12 +3,13 @@
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

View File

@ -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)