mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
+5
-13
@@ -355,20 +355,12 @@ def create_ui(startup_timer = None):
|
||||
ui_onnx.create_ui()
|
||||
|
||||
with gr.TabItem("Change log", id="change_log", elem_id="system_tab_changelog"):
|
||||
def get_changelog():
|
||||
with open('CHANGELOG.md', 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
content = content.replace('# Change Log for SD.Next', ' ')
|
||||
return content
|
||||
from modules import ui_docs
|
||||
ui_docs.create_ui_logs()
|
||||
|
||||
with gr.Column():
|
||||
get_changelog_btn = gr.Button(value='Get changelog', elem_id="get_changelog")
|
||||
with gr.Column():
|
||||
_changelog_search = gr.Textbox(label="Search", elem_id="changelog_search")
|
||||
_changelog_result = gr.HTML(elem_id="changelog_result")
|
||||
|
||||
changelog_markdown = gr.Markdown('', elem_id="changelog_markdown")
|
||||
get_changelog_btn.click(fn=get_changelog, outputs=[changelog_markdown], show_progress=True)
|
||||
with gr.TabItem("Wiki", id="wiki", elem_id="system_tab_wiki"):
|
||||
from modules import ui_docs
|
||||
ui_docs.create_ui_wiki()
|
||||
|
||||
def unload_sd_weights():
|
||||
modules.sd_models.unload_model_weights(op='model')
|
||||
|
||||
Reference in New Issue
Block a user