Spaces:
Runtime error
Runtime error
Commit ·
60f4dd4
1
Parent(s): c1bfd08
Update utils.py
Browse files9 unmodified lines1011121314151617181920219 unmodified lines# Parse the CSV file and create a Pandas DataFrame from its contents.df = pd.read_csv(data)llm = OpenAI()# Set the model to usemodel = "gpt-4-32k"# Create a Pandas DataFrame agent.agent = create_pandas_dataframe_agent(llm, df, model= model, verbose=True)#Python REPL: A Python shell used to evaluating and executing Python commands.#It takes python code as input and outputs the result. The input python code can be generated from another tool in the LangChain9 unmodified lines10111213141516171819209 unmodified lines# Parse the CSV file and create a Pandas DataFrame from its contents.df = pd.read_csv(data)llm = ChatOpenAI(model_name="gpt-4", temperature=0.1)# Create a Pandas DataFrame agent.agent = create_pandas_dataframe_agent(llm, df, verbose=True)#Python REPL: A Python shell used to evaluating and executing Python commands.#It takes python code as input and outputs the result. The input python code can be generated from another tool in the LangChain
utils.py+3-4