gallery icon indicating copy to clipboard operation
gallery copied to clipboard

[Feature] Load Model AllowList JSON from Local

Open Ivan2getdmodelz opened this issue 4 months ago • 2 comments

When attempting to load the Gallery app on a device with no internet connection, a fatal error appears which prevents users from using the app. Screenshot below. Error: "Failed to load model list. Please check your internet connection and try again later."

It would be great if the Gallery app would load the model_allowlists.json (currently model_allowlists/1_0_4.json) provided within the repository, rather than reaching back out to GitHub. This would enable users to load the Gallery app without connecting to the internet.

An alternative could be to allow the user to acknowledge the failure to load model list, then proceed to the app so they can load models from the local storage. Currently, the user can only select "retry" in the error window.

Image

Ivan2getdmodelz avatar Aug 06 '25 19:08 Ivan2getdmodelz

This was a pretty easy fix, so I implemented it myself.

Tried pushing the code to this repo then realized it is not accepting contributions at this time (lame). Decided to fork the repo to my account and push the changes there.

https://github.com/Ivan2getdmodelz/gallery/tree/load-model-allowlist-from-local

Ivan2getdmodelz avatar Aug 07 '25 17:08 Ivan2getdmodelz

Hi @Ivan2getdmodelz,

Thank you for this excellent feature request and for taking the impressive initiative to implement a solution in your fork.

We appreciate you sharing your feedback on current contribution policy. Your implementation will be a very helpful reference for our team as we review this request.

Thanks again for your proactive contribution and valuable input!

dpknag avatar Aug 12 '25 23:08 dpknag

Looks like this problem may have been somewhat addressed in issue #287, included in release #1.0.7.

Ivan2getdmodelz avatar Dec 16 '25 16:12 Ivan2getdmodelz