Skip to content

FartyPants/FPreloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 

Repository files navigation

FPreloader (now with Attribute monitor)

ko-fi

An extension that will make your life as an extension developer this much easier > ----- <

FPreloader will HARD reload all your other extensions. It's like that one ring that rules the other rings, or something on that note. For developers and other strange people.

for Python > 3.4

How it works:

cd PATH_TO_text-generation-webui/extensions

then clone this repo

git clone https://github.com/FartyPants/FPreloader

Start ooba and in Interface enable FPReloader

image

Apply and restart interface, now you should see tab FPReloader

image

Anytime you press the big red button, your extensions will be reloaded (AKA if you made changes to your script.py file, the changes should be reloaded) then Gradio will be restarted ... or you can do it in two steps: Reload Extensions, then Restart Gradio (depending on the size of the extension there needs to be a slight time for python to recompile your modified version, the red button assumes 2.5 sec is enough as default)

Nested imports (or whatever they are called)

image

Use the Deep Reload for reloading all nested imports within the extensions (for example in superbooga chromadb or download_urls will reload as well before the script itself)

Debug View Options

allows you to see attributes etc...

image

Attribute watch - type attribute of currently viewed module you want to see, instead of all. Comma delimited

image

Dictionaries - you can type the exact dictionary key (you don't need to use ' or " for keys)

image

The monitor doesn't update by itself, when the value change you need to press refresh.

Tips

Task                     Module View          Attribute Watch
_____________________________________________________________________
Get python version          sys              version, _base_executable
Arguments                   sys              argv

Monkey stuff

Detour sorting of LORA and Models so the dropdown displays the recently added models/lora first Detour allowing LORA to display and use checkpoints in the LORA menu

image

Additions

List imported python modules image

If nothing of this makes any sense then you are in the wrong repo.

About

Hard Reload oobabooga text WebUI extensions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages