wiki search

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-11-07 19:44:53 -05:00
parent 9fef22735f
commit 3f2d3d208d
5 changed files with 86 additions and 14 deletions
+5 -13
View File
@@ -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')