ParisNeo / lollms-webui

Lord of Large Language Models Web User Interface
https://parisneo.github.io/lollms-webui/
Apache License 2.0
4.07k stars 515 forks source link

Update app.py #522

Closed xe-dev closed 3 months ago

xe-dev commented 3 months ago

FIxes issue #343 in new version.

Description

In Windows, using ollama as a backend, the UI does not load. This fixes the issue

The console shows the following error:

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

Fixes # 343 that seems to have been reintroduced in a later version (humble guess)

Type of change

Important:

As I am a noob contributor in this project, my code maybe is not following the style guidelines

xe-dev commented 3 months ago

Issue was fixed. Thanks