{"id":27918061,"url":"https://github.com/arjun-ms/hubermind-ai","last_synced_at":"2025-05-06T18:08:17.519Z","repository":{"id":214293392,"uuid":"736135777","full_name":"arjun-ms/HuberMind-AI","owner":"arjun-ms","description":"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.","archived":false,"fork":false,"pushed_at":"2024-04-11T10:22:20.000Z","size":3108,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T18:08:13.173Z","etag":null,"topics":["ai","andrew-huberman","arjun-ms","pathway"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arjun-ms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-12-27T04:49:07.000Z","updated_at":"2024-05-03T11:53:52.000Z","dependencies_parsed_at":"2023-12-27T08:23:31.603Z","dependency_job_id":"87231629-daaa-46e7-ba03-ccbb989137bf","html_url":"https://github.com/arjun-ms/HuberMind-AI","commit_stats":null,"previous_names":["arjun-ms/hubermind-ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjun-ms%2FHuberMind-AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjun-ms%2FHuberMind-AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjun-ms%2FHuberMind-AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjun-ms%2FHuberMind-AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arjun-ms","download_url":"https://codeload.github.com/arjun-ms/HuberMind-AI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252741370,"owners_count":21797027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","andrew-huberman","arjun-ms","pathway"],"created_at":"2025-05-06T18:08:16.949Z","updated_at":"2025-05-06T18:08:17.505Z","avatar_url":"https://github.com/arjun-ms.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HuberMind-AI\n\nHuberMind 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.\n\n## Demo\n\nClick the Image to see how the tool works:\n[![HuberMind AI](https://github.com/arjun-ms/HuberMind-AI/assets/64315213/59eaa237-3568-4c71-a68d-46d603e9494c)](https://youtu.be/BILcnys0luY)\n\n## How to run the tool\n#### Prerequisites\n\n1. Make sure that [Python](https://www.python.org/downloads/) 3.10 or above is installed on your machine.\n2. Download and Install [Pip](https://pip.pypa.io/en/stable/installation/) to manage project packages.\n3. Create an [OpenAI](https://openai.com/) 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](https://openai.com/product) and navigating to the API Key management page.\n4. Obtain your YouTube Channel ID:\n   - To get a channel ID, visit the channel page on YouTube,\n   e.g `https://www.youtube.com/@hubermanlab`\n    - Right-click on your browser and click View Page Source.\n    - Search (Ctrl-F) for `https://www.youtube.com/channel/` in the page source.\n    - The channel ID will appear directly after the /channel/ text in the URL path. \n5. Get a YouTube API Key:\n   - Visit the [Google Cloud Console](https://console.cloud.google.com/).\n   - Create a new project or select an existing one.\n   - Navigate to 'APIs \u0026 Services' \u003e 'Credentials'.\n   - Click on ‘Create Credentials’ and select ‘API Key’. This will generate a new API key for you.\n   - To restrict the API Key to YouTube Data API v3, click on the newly generated API key and set the API restrictions accordingly.\n\nRemember to keep your API Key secure and never share it publicly.\n\n---\n\n```Then, follow the easy steps to install and start using this app. There are 2 ways to run this app:```\n\n### Run with Docker\n\n1. 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.\n\n2. Run the transcriber.py file to get transcripts for all the videos in the youtube channel.\n\n3. From the project root folder, open your terminal and run `docker compose build`.\n\n4. Run `docker compose up` to start the app.\n\n5. Navigate to `localhost:8501` on your browser when docker installion is successful.\n\n### Run from the source\n\n#### Step 1: Clone the repository\n\nThis is done with the `git clone` command followed by the URL of the repository:\n\n```bash\ngit clone https://github.com/arjun-ms/HuberMind-AI.git\n```\n\nNext,  navigate to the project folder:\n\n```bash\ncd HuberMind-AI\n```\n\n#### Step 2: Set environment variables\n\nRename 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.\n\n\nReplace YT_CHANNEL_ID and YT_API_KEY as mentioned in the pre-requisites and optionally, you customize other values.\n\n#### Step 3 (Optional): Create a new virtual environment\n\nCreate a new virtual environment in the same folder and activate that environment:\n\n```bash\npython -m venv venv \u0026\u0026 source venv/bin/activate\n```\n\n#### Step 4: Install the app dependencies\n\nInstall the required packages:\n\n```bash\npip install --upgrade -r requirements.txt\n```\n\n#### Step 5: Run the YouTube Transcript Transcriber\n\nTo download and save YouTube video transcripts, execute `transcriber.py`:\n\n```bash\npython transcriber.py\n```\n\n#### Step 6: Run the Pathway API\n\nYou start the application by running `main.py`:\n\n```bash\npython main.py\n```\n\n#### Step 7: Run Streamlit UI\n\nYou can run the UI separately by running Streamlit app:\n```bash\nstreamlit run ui.py\n```\nIt connects to the Pathway's backend API automatically and you will see the UI frontend is running on your browser.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjun-ms%2Fhubermind-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farjun-ms%2Fhubermind-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjun-ms%2Fhubermind-ai/lists"}