Questions, dynamic autocomplete. #134
-
Hello. First of all, really fantastic utility that is a great quality of life improvement over the existing interface, I think.
Edit: Oh, I see - lora and embedding lookup works when typing "<". Clever. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
1:Gradio forbids loading files that aren't either in the root folder of the app or put into temp directories by gradio itself for security reasons. That means even if I would use absolute paths there, the javascript will not be able to fetch these files if they aren't under the webui folder. It's a bit of an inconvenience, but nothing I can do about it as far as I'm aware. For the same reason, this also breaks symlinks and some docker setups. 2 & 3:As you found out yourself already, The reason they are written to those files in the first place is similar to point one: Gradio doesn't provide a file index or allow searching for local files, so the script needs to find and save the paths beforehand for all files it needs to load in the browser. This applies to all paths that can have variable file or folder names, which is also the reason for tag_base_path to exist, since the extensions folder can be called whatever the user wants. |
Beta Was this translation helpful? Give feedback.
1:
Gradio forbids loading files that aren't either in the root folder of the app or put into temp directories by gradio itself for security reasons. That means even if I would use absolute paths there, the javascript will not be able to fetch these files if they aren't under the webui folder. It's a bit of an inconvenience, but nothing I can do about it as far as I'm aware. For the same reason, this also breaks symlinks and some docker setups.
2 & 3:
As you found out yourself already,
<
will show these embeddings, loras and hypernets. It also supports showing only one type by using<e:
,<l:
or<h:
respectively, or the long form<lora:
and<hypernet:
. Similarly, wildcards will be shown whe…