SevaSk / ecoute

Ecoute is a live transcription tool that provides real-time transcripts for both the user's microphone input (You) and the user's speakers output (Speaker) in a textbox. It also generates a suggested response using OpenAI's GPT-3.5 for the user to say based on the live transcription of the conversation.
https://github.com/SevaSk/ecoute
MIT License
5.85k stars 817 forks source link

File Encoding #37

Closed alma765 closed 1 year ago

alma765 commented 1 year ago

this echo 'OPENAI_API_KEY = "API KEY"' > keys.py encodse the keys.py in the wrong format and gives error when running. Make sure the file is saved in utf8 before running.

Was getting this error otherwise Traceback (most recent call last): File "C:\Users\New User\Desktop\ecoute\main.py", line 3, in from GPTResponder import GPTResponder File "C:\Users\New User\Desktop\ecoute\GPTResponder.py", line 2, in from keys import OPENAI_API_KEY ValueError: source code string cannot contain null bytes

SevaSk commented 1 year ago

Thanks, updated the README to this command

python -c "with open('keys.py', 'w', encoding='utf-8') as f: f.write('OPENAI_API_KEY=\"API KEY\"')"