ORromu commited on
Commit
a4a2855
·
verified ·
1 Parent(s): c61d7ba

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +3 -2
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 = getenv("SUPABASE_URL")
29
- SUPABASE_SERVICE_ROLE_KEY = getenv("SUPABASE_URL")
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