HuberMind AI is an innovative tool inspired by the expertise of neuroscientist Andrew Huberman. Just 'Ask Andrew' anything you want to know, and get intelligent, AI-powered responses.
Click the Image to see how the tool works:
- Make sure that Python 3.10 or above is installed on your machine.
- Download and Install Pip to manage project packages.
- Create an OpenAI account and generate a new API Key: To access the OpenAI API, you will need to create an API Key. You can do this by logging into the OpenAI website and navigating to the API Key management page.
- Obtain your YouTube Channel ID:
- To get a channel ID, visit the channel page on YouTube,
e.g
https://www.youtube.com/@hubermanlab
- Right-click on your browser and click View Page Source.
- Search (Ctrl-F) for
https://www.youtube.com/channel/
in the page source. - The channel ID will appear directly after the /channel/ text in the URL path.
- To get a channel ID, visit the channel page on YouTube,
e.g
- Get a YouTube API Key:
- Visit the Google Cloud Console.
- Create a new project or select an existing one.
- Navigate to 'APIs & Services' > 'Credentials'.
- Click on ‘Create Credentials’ and select ‘API Key’. This will generate a new API key for you.
- To restrict the API Key to YouTube Data API v3, click on the newly generated API key and set the API restrictions accordingly.
Remember to keep your API Key secure and never share it publicly.
Then, follow the easy steps to install and start using this app. There are 2 ways to run this app:
-
Rename the
.env_sample
file in the root directory of the project to.env
. Replace theOPENAI_API_TOKEN
configuration value with your key{OPENAI_API_KEY}
. Other properties are optional to change and be default. -
Run the transcriber.py file to get transcripts for all the videos in the youtube channel.
-
From the project root folder, open your terminal and run
docker compose build
. -
Run
docker compose up
to start the app. -
Navigate to
localhost:8501
on your browser when docker installion is successful.
This is done with the git clone
command followed by the URL of the repository:
git clone https://github.com/arjun-ms/HuberMind-AI.git
Next, navigate to the project folder:
cd HuberMind-AI
Rename the .env_sample
file in the root directory of the project to .env
. Replace the OPENAI_API_TOKEN
configuration value with your key {OPENAI_API_KEY}
. Other properties are optional to change and be default.
Replace YT_CHANNEL_ID and YT_API_KEY as mentioned in the pre-requisites and optionally, you customize other values.
Create a new virtual environment in the same folder and activate that environment:
python -m venv venv && source venv/bin/activate
Install the required packages:
pip install --upgrade -r requirements.txt
To download and save YouTube video transcripts, execute transcriber.py
:
python transcriber.py
You start the application by running main.py
:
python main.py
You can run the UI separately by running Streamlit app:
streamlit run ui.py
It connects to the Pathway's backend API automatically and you will see the UI frontend is running on your browser.