Closed bourneash closed 9 months ago
Hi, this function is in lollms_core. It has been added lately. It is in the repo, so maybe you just need to go to the folder lollms_core and do a git pull.
That would be it! Thank you and happy holidays!
You are welcome
Expected Behavior
Launch the app.py without any errors
Current Behavior
Unable to launch the application
Steps to Reproduce
python app.py --host 0.0.0.0
Error: Traceback (most recent call last): File "/home/user/lollms-webui/app.py", line 30, in
from lollms.utilities import AdvancedGarbageCollector, reinstall_pytorch_with_cuda, convert_language_name
ImportError: cannot import name 'convert_language_name' from 'lollms.utilities' (/home/user/lollms-webui/lollms_core/lollms/utilities.py)
Context
If change app.py line: from lollms.utilities import AdvancedGarbageCollector, reinstall_pytorch_with_cuda, convert_language_name to from lollms.utilities import AdvancedGarbageCollector, reinstall_pytorch_with_cuda #, convert_language_name launch the app with
python app.py --host 0.0.0.0
and then remove the comment from above the app will launch againAlso, looks like there might be some work being done around this recently: https://github.com/ParisNeo/lollms-webui/blame/bb43498c89c185eab2d67af8d86a984cfdb80568/api/__init__.py#L41