ItsPi3141 / alpaca-electron

The simplest way to run Alpaca (and other LLaMA-based local LLMs) on your own computer
MIT License
1.29k stars 144 forks source link

The text is being interpreted as a Windows command after clearing the chat #58

Open ClementCariou opened 1 year ago

ClementCariou commented 1 year ago

Describe the bug Currently, when the user clicks on "Clear chat" after asking a question, the last conversation remains on the screen, and the backend stops, showing the command line. When the user tries to ask another question, the text is interpreted as a Windows command.

To Reproduce Steps to reproduce the behavior:

  1. Ask a question and wait for the bot to answer.
  2. Click "Clear chat" once.
  3. The cmd path is shown in the chat "C:\Users\clem4\AppData\Local\Programs\alpaca-electron>".
  4. Ask another question.
  5. The text is interpreted as a Windows command.

Expected behavior The chat should be cleared, the chat bot should be able to make another conversation.

Screenshots image

Desktop:

(similar to #25)

lustfeind commented 1 year ago

Confirm same problem on mac arm version. Chat does not work anymore after clearing chat.

ItsPi3141 commented 1 year ago

Ok I'll have to look into this more. I thought I fixed it already for windows. And from my testing, the problem shouldn't occur on Mac and Linux. Unless you spam the stop button. So maybe I'll just gray out the button after the first press.

RandomLegend commented 1 year ago

The same issue occurs on linux for me aswell. However not everytime interestingly.

LostMekka commented 1 year ago

for me this happens right from the start, regardless of what model i choose. the model does not load (i dont see any ram usage increase) and if i type "notepad.exe" in the prompt area, notepad opens up...