Anil-matcha / Youtube-to-chatbot

Chat with any Youtube video. Easily input the video url you'd like to chat with. Instant answers. Ask questions, extract information, and summarize documents with AI. Sources included.
https://www.thesamur.ai/add-chatgpt-to-notion/?utm_source=github&utm_medium=link&utm_campaign=github_youtubetochatbot
MIT License
143 stars 29 forks source link

Run "pip install -r requirements.txt" #1

Open neo-seeker opened 1 year ago

neo-seeker commented 1 year ago

Eager to install and run on Conda environment. But unable to find ==> "pip install -r requirements.txt".

AnkMister commented 1 year ago

I am also having this issue

Anil-matcha commented 1 year ago

@neo-seeker @AnkMister

Added requirements.txt file now. Please check

neo-seeker commented 1 year ago

Yea, that works, issue can be closed. Following the instruction " Set OPENAI_API_KEY environment variable with your openai key " . Where does the API key need to be inserted.

itsthemoon commented 1 year ago

I am having the same issue as above

Anil-matcha commented 1 year ago

@itsthemoon What issue are you facing ?

neo-seeker commented 1 year ago

Hi Anil, here is the log below. I wanted to know where the "OPENAI_API_KEY" would be inserted. I would be great to have a video or else some working instructions, docker or something like that. Thanks Anil.

@.***:/home/po/Chat-Youtube# python chat_youtube.py

Command 'python' not found, did you mean:

command 'python3' from deb python3

command 'python' from deb python-is-python3

@.***:/home/po/Chat-Youtube# python3 chat_youtube.py

Traceback (most recent call last):

File "/home/po/Chat-Youtube/chat_youtube.py", line 4, in

index = VectorstoreIndexCreator().from_loaders([loader])

File "pydantic/main.py", line 339, in pydantic.main.BaseModel.init

File "pydantic/main.py", line 1066, in pydantic.main.validate_model

File "pydantic/fields.py", line 439, in pydantic.fields.ModelField.get_default

File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init

pydantic.error_wrappers.ValidationError: 1 validation error for OpenAIEmbeddings

root

Did not find openai_api_key, please add an environment variable OPENAI_API_KEY which contains it, or pass openai_api_key as a named parameter. (type=value_error)

@.***:/home/po/Chat-Youtube#

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free.www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sun, May 21, 2023 at 3:36 PM Anil Chandra Naidu Matcha < @.***> wrote:

@itsthemoon https://github.com/itsthemoon What issue are you facing ?

— Reply to this email directly, view it on GitHub https://github.com/Anil-matcha/Chat-Youtube/issues/1#issuecomment-1556137715, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2JM4UFZSKNQLMM7TTECMEDXHHSI5ANCNFSM6AAAAAAYF2YGYE . You are receiving this because you were mentioned.Message ID: @.***>

Anil-matcha commented 1 year ago

@neo-seeker You need to set it as an environment variable