Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loras don't reload or download preview images and info after downloading them via CivitAI Link #121

Open
jiveabillion opened this issue Nov 23, 2023 · 0 comments

Comments

@jiveabillion
Copy link
Contributor

the code has a TODO in it where it might refresh the list saying you're not sure how to import it. Here's the code you need.
from modules.ui_extra_networks import extra_pages page = next(iter([x for x in extra_pages if x.name == "lora"]), None) page.refresh()
I have already got it working locally. I also hacked loading the preview and info in there too, probably in a bad way since I don't know how to properly circumvent a the circular import to get to the preview and info modules from the civitai.lib module. I am new to python.
The above code works for Lora and LyCoris though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant