JamalAG commited on
Commit
61d5a1e
·
verified ·
1 Parent(s): 027c824

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +3 -0
utils.py CHANGED
@@ -2,6 +2,9 @@ from langchain_experimental.agents import create_pandas_dataframe_agent
2
  import pandas as pd
3
  from langchain.agents.agent_types import AgentType
4
  from langchain_community.llms import HuggingFaceEndpoint
 
 
 
5
 
6
  def query_agent(data, query):
7
  # Parse the CSV file and create a Pandas DataFrame from its contents.
 
2
  import pandas as pd
3
  from langchain.agents.agent_types import AgentType
4
  from langchain_community.llms import HuggingFaceEndpoint
5
+ import os
6
+
7
+ os.getenv('huggingfacehub_api_token ')
8
 
9
  def query_agent(data, query):
10
  # Parse the CSV file and create a Pandas DataFrame from its contents.