emmethalm / youtube-to-chatbot Goto Github PK
View Code? Open in Web Editor NEWTrain a chatbot on an entire YouTube channel using OpenAI & Pinecone.
Train a chatbot on an entire YouTube channel using OpenAI & Pinecone.
TransportError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/google/auth/compute_engine/credentials.py in refresh(self, request)
127 try:
--> 128 self._retrieve_info(request)
129 self.token, self.expiry = _metadata.get_service_account_token(
12 frames
TransportError: ("Failed to retrieve http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true from the Google Compute Engine metadata service. Status: 404 Response:\nb''", <google_auth_httplib2._Response object at 0x7f7dfe064f10>)
The above exception was the direct cause of the following exception:
RefreshError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/google/auth/compute_engine/credentials.py in refresh(self, request)
132 except exceptions.TransportError as caught_exc:
133 new_exc = exceptions.RefreshError(caught_exc)
--> 134 raise new_exc from caught_exc
135
136 @Property
RefreshError: ("Failed to retrieve http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true from the Google Compute Engine metadata service. Status: 404 Response:\nb''", <google_auth_httplib2._Response object at 0x7f7dfe064f10>)
Hi,
because this uses various API keys, especially chatgpt API, it means users need to buy credits to setup the system.
Do you mind sharing an example, using a youtube channel as reference, sharing how many videos it has, and how much it costs to scrape everything, I mean for the initial setup I assume it also uses chatgpt?
Then I guess how much it costs to use it, it depends on the chat, but an example could also be beneficial for new users.
Pinecone Starter (Free) plan works?
Thank you
Pinecode is passed, supabase is much better. I suggest making this change.
name 'googleapiclient' is not defined
NameError Traceback (most recent call last)
Cell In[3], line 59
56 print(transcripts)
57 write_to_file(transcripts)
---> 59 main(api_key, channel_id)
Cell In[3], line 54, in main(api_key, channel_id)
53 def main(api_key, channel_id):
---> 54 video_ids = get_channel_videos(channel_id, api_key)[:20]
55 transcripts = get_transcripts(video_ids)
56 print(transcripts)
Cell In[3], line 10, in get_channel_videos(channel_id, api_key)
9 def get_channel_videos(channel_id, api_key):
---> 10 youtube = googleapiclient.discovery.build(
11 "youtube", "v3", developerKey=api_key)
15 video_ids = []
16 page_token = None
NameError: name 'googleapiclient' is not defined
I als think YouTubeTranscriptApi in the def get_transcripts(video_ids): is not defined.
I used the YouTube Data API is that correct? you should make clear which API key to use in that cell
All the best!
Cannot run, googleapplicant not defined in cell 2, results in error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.