mudler / LocalAI

:robot: The free, Open Source OpenAI alternative. Self-hosted, community-driven and local-first. Drop-in replacement for OpenAI running on consumer-grade hardware. No GPU required. Runs gguf, transformers, diffusers and many more models architectures. It allows to generate Text, Audio, Video, Images. Also with voice cloning capabilities.
https://localai.io
MIT License
21.59k stars 1.65k forks source link

WebUI Filter Tag issue #2619

Open FrankDaze opened 1 week ago

FrankDaze commented 1 week ago

Hi,

I'm using v2.17.1 on my linux server and if I enter the WebUi with /browser, I see >19k of filter tags, which makes it impossible to use the page for a while.

image

Best Frank

mudler commented 1 week ago

@FrankDaze are you adding/having a separate repository? where all these tags are coming from?

FrankDaze commented 1 week ago

@mudler I have only this setting in the env file: GALLERIES=[{"name":"model-gallery", "url":"github:go-skynet/model-gallery/index.yaml"}, {"url": "github:go-skynet/model-gallery/huggingface.yaml","name":"huggingface"}]

heralight commented 1 week ago

Hi, Same problem, same configuration, the '/browse/' completely freeze the browser.

If I delete huggingface repository, it works.

mudler commented 1 week ago

@FrankDaze - @heralight I'm sorry but that repository isn't maintained anymore, so you should adapt the GALLERIES to drop the huggingface one. We have moved the gallery to this repository directly for better maintenance.

I'd suggest to delete it from the configuration. The only one maintained now is the LocalAI one which is shipped already pre-configured in the images, so you don't have to setup any gallery (unless you are building yours) and you can drop specifying the environment variable completely. You should see then a gallery with the same models as shown in https://models.localai.io.

However the problem that a large gallery might crash the UI is still an issue, but that needs more enhancements like pagination, which is tracked in #2156

heralight commented 1 week ago

@mudler thank you! @FrankDaze , to fix it I change my .env to default as:

LOCALAI_GALLERIES=[{"name":"localai", "url":"github:mudler/LocalAI/gallery/index.yaml@master"}]
#GALLERIES=[{"name":"model-gallery", "url":"github:go-skynet/model-gallery/index.yaml"}]
FrankDaze commented 1 week ago

Thanks it's working now.