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

Error while starting the webui #17

Closed
SmileX-san opened this issue Mar 25, 2023 · 2 comments
Closed

Error while starting the webui #17

SmileX-san opened this issue Mar 25, 2023 · 2 comments

Comments

@SmileX-san
Copy link

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
Copy link
Owner

ViperX7 commented Mar 25, 2023

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

@SmileX-san
Copy link
Author

Thanks, it fixed the issue

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

2 participants