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

Fix local html file path resolution from the model name #368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sam42592
Copy link

When having two models with these names (an example):
dreamshaper_8
dreamshaper_8Inpainting

When resolving the html file name (using existing code) for the model dreamshaper_8, the file that is guessed might be dreamshaper_8Inpainting.html. And the wrong locale html is loaded for the model ...

This pull request addresses the issue by adding a test to check the length of the matched file, which should fix the issue for most of the use cases.
Arguably, this is not ideal as there might be some edge cases where this doesn't fix the issue. But, this will fix most of the issues and is definitely better that what we have now.

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

Successfully merging this pull request may close these issues.

1 participant