ViperX7 / Alpaca-Turbo

Web UI to run alpaca model locally
GNU Affero General Public License v3.0
877 stars 92 forks source link

Error while starting the webui #17

Closed SmileX-san closed 1 year ago

SmileX-san commented 1 year ago

Running "python webui.py" gives the following error:

Traceback (most recent call last): File "E:\Alpaca-Turbo\webui.py", line 13, in gptui = ChatBotUI(ASSISTANT) File "E:\Alpaca-Turbo\UI.py", line 24, in init self._personas = Personas("./prompts.json") File "E:\Alpaca-Turbo\prompts.py", line 14, in init self.load() File "E:\Alpaca-Turbo\prompts.py", line 18, in load self.bots = json.load(f) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\json__init__.py", line 293, in load return loads(fp.read(), File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\encodings\cp1251.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 452: character maps to

ViperX7 commented 1 year ago

hey can you try removing an emoji from the prompts.json file i think it should fix this

SmileX-san commented 1 year ago

Thanks, it fixed the issue