Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,6 +24,22 @@ from langchain_core.tools import tool
|
|
| 24 |
from langchain.tools.retriever import create_retriever_tool
|
| 25 |
from supabase.client import Client, create_client
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
# (Keep Constants as is)
|
| 28 |
# --- Constants ---
|
| 29 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
|
| 24 |
from langchain.tools.retriever import create_retriever_tool
|
| 25 |
from supabase.client import Client, create_client
|
| 26 |
|
| 27 |
+
from dotenv import load_dotenv
|
| 28 |
+
from langgraph.graph import START, StateGraph, MessagesState
|
| 29 |
+
from langgraph.prebuilt import tools_condition
|
| 30 |
+
from langgraph.prebuilt import ToolNode
|
| 31 |
+
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 32 |
+
from langchain_groq import ChatGroq
|
| 33 |
+
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint, HuggingFaceEmbeddings
|
| 34 |
+
from langchain_community.tools.tavily_search import TavilySearchResults
|
| 35 |
+
from langchain_community.document_loaders import WikipediaLoader
|
| 36 |
+
from langchain_community.document_loaders import ArxivLoader
|
| 37 |
+
from langchain_community.vectorstores import SupabaseVectorStore
|
| 38 |
+
from langchain_core.messages import SystemMessage, HumanMessage
|
| 39 |
+
from langchain_core.tools import tool
|
| 40 |
+
from langchain.tools.retriever import create_retriever_tool
|
| 41 |
+
from supabase.client import Client, create_client
|
| 42 |
+
|
| 43 |
# (Keep Constants as is)
|
| 44 |
# --- Constants ---
|
| 45 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|