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.89k stars 827 forks source link

ValueError: source code string cannot contain null bytes #36

Closed ak2digi closed 1 year ago

ak2digi commented 1 year ago

null_bytes_error

SevaSk commented 1 year ago

I've updated the README so the command is now

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

try deleting the keys.py file and trying this command

SevaSk commented 1 year ago

Or you could create a file named keys.py and copy paste OPENAI_API_KEY = "YOUR_KEY" and save the old fashion way

ak2digi commented 1 year ago

Perfect, it works fine!