100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
modified local chat github
ShubhamSaboobcca36129696
diff --git a/chat_with_github/chat_github_llama3.py b/chat_with_github/chat_github_llama3.pyindex 3d279db5..0ef72586 100644--- a/chat_with_github/chat_github_llama3.py+++ b/chat_with_github/chat_github_llama3.py@@ -6,7 +6,7 @@ import streamlit as stloader = GithubLoader(config={- "token":"Your_GitHub_PAT",+ "token":"Your GitHub Token",})@@ -22,12 +22,15 @@ def embedchain_bot(db_path):# Create Streamlit appst.title("Chat with GitHub Repository 💬")-st.caption("This app allows you to chat with a GitHub Repo using OpenAI API")+st.caption("This app allows you to chat with a GitHub Repo using Llama-3 running with Ollama")+# Initialize the Embedchain Appdb_path = tempfile.mkdtemp()app = embedchain_bot(db_path)+# Get the GitHub repo from the usergit_repo = st.text_input("Enter the GitHub Repo", type="default")+if git_repo:# Add the repo to the knowledge baseapp.add("repo:" + git_repo + " " + "type:repo", data_type="github", loader=loader)