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 #6

Closed dav1dwar10ck closed 1 year ago

dav1dwar10ck commented 1 year ago

[Running] python -u "d:\ecoute\main.py" C:\Users\dav1d\AppData\Local\Programs\Python\Python310\lib\site-packages\whisper\timing.py:58: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details. def backtrace(trace: np.ndarray): Traceback (most recent call last): File "d:\ecoute\main.py", line 3, in from GPTResponder import GPTResponder File "d:\ecoute\GPTResponder.py", line 2, in from keys import OPENAI_API_KEY ValueError: source code string cannot contain null bytes

[Done] exited with code=1 in 2.24 seconds

CatsMeow492 commented 1 year ago

This happens due to the encoding of the file using the echo method to produce the keys file uses.

Just open up your favorite IDE or text editor create a file named keys.py and copy paste OPENAI_API_KEY = "YOUR_KEY" and save the old fashion way