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

UI not working #152

Open
chekotisrikanth opened this issue Sep 25, 2024 · 5 comments
Open

UI not working #152

chekotisrikanth opened this issue Sep 25, 2024 · 5 comments

Comments

@chekotisrikanth
Copy link

After installing run_cli works fine. but when i ran run_ui nothing works. If click on send button nothing happens. when i click on reset or new chat button i see ' resetChat is not a function' errors in browser console.
Did i miss any installation step?
This is on windows.

@DefiantHarmonics
Copy link

What do you see in the command line? Maybe more info on your install.

@chekotisrikanth
Copy link
Author

nothing but i saw this in browser console. index.js:1 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.
I removed message.js ran once and then placed it back. then it worked. not sure why it didn't worked for first time. thanks a lot for quick response.

@Sagners
Copy link

Sagners commented Sep 30, 2024

nothing but i saw this in browser console. index.js:1 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. I removed message.js ran once and then placed it back. then it worked. not sure why it didn't worked for first time. thanks a lot for quick response.

Hello,I meet the problem too!How can I solve the problem?I am on Windows.
And there really is nothing in the terminal,even when I turned the debug mode on. (o;TωT)o
And I notice there is a difference between Edge and Firefox?
this is on firefox
image
And this is on Edge
image

@chekotisrikanth
Copy link
Author

I compared files to check what changes I made. These are changes. add below two lines at the top
import mimetypes

mimetypes.add_type('application/javascript', '.js')
#initialize the internal Flask server
app = Flask("app",static_folder=get_abs_path("./webui"),static_url_path="/"). And then do empty cache and reload in chrome.

@stubborncoder
Copy link

Same issue for me, can you please refer the file where you made this changes?

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

4 participants