frdel / agent-zero

Agent Zero AI framework
Other
4.85k stars 1.07k forks source link

UI not working #152

Open chekotisrikanth opened 1 month ago

chekotisrikanth commented 1 month ago

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 commented 1 month ago

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

chekotisrikanth commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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