Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -13,6 +13,7 @@ from tool import (add,
|
|
| 13 |
extract_text_from_image,
|
| 14 |
analyze_csv_file,
|
| 15 |
analyze_excel_file)
|
|
|
|
| 16 |
from os import getenv
|
| 17 |
from langgraph.graph.message import add_messages
|
| 18 |
from langchain_core.messages import AnyMessage, SystemMessage, HumanMessage, AIMessage
|
|
@@ -25,8 +26,8 @@ from langchain_community.vectorstores import SupabaseVectorStore
|
|
| 25 |
from supabase.client import Client, create_client
|
| 26 |
|
| 27 |
HUGGINGFACEHUB_API_TOKEN = getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 28 |
-
SUPABASE_URL =
|
| 29 |
-
SUPABASE_SERVICE_ROLE_KEY =
|
| 30 |
|
| 31 |
|
| 32 |
# load the system prompt from the file
|
|
|
|
| 13 |
extract_text_from_image,
|
| 14 |
analyze_csv_file,
|
| 15 |
analyze_excel_file)
|
| 16 |
+
import os
|
| 17 |
from os import getenv
|
| 18 |
from langgraph.graph.message import add_messages
|
| 19 |
from langchain_core.messages import AnyMessage, SystemMessage, HumanMessage, AIMessage
|
|
|
|
| 26 |
from supabase.client import Client, create_client
|
| 27 |
|
| 28 |
HUGGINGFACEHUB_API_TOKEN = getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 29 |
+
SUPABASE_URL = os.environ.get("SUPABASE_URL")
|
| 30 |
+
SUPABASE_SERVICE_ROLE_KEY = os.environ.get("SUPABASE_SERVICE_ROLE_KEY")
|
| 31 |
|
| 32 |
|
| 33 |
# load the system prompt from the file
|