• Junpeng Qiu's avatar
    Added Refresh Button to embedding and hypernetwork names in Train Tab · 36a0ba35
    Junpeng Qiu authored
    Problem
    everytime I modified pt files in embedding_dir or hypernetwork_dir, I
    need to restart webui to have the new files shown in the dropdown of
    Train Tab
    
    Solution
    refactored create_refresh_button out of create_setting_component so we
    can use this method to create button next to gr.Dropdowns of embedding
    name and hypernetworks
    
    Extra Modification
    hypernetwork pt are now sorted in alphabetic order
    36a0ba35
ui.py 77 KB