ssumukh17 commited on
Commit
52d9ea6
·
1 Parent(s): 1085338

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ df_holdings = pd.read_csv("holdings.csv")
14
  df_trades = pd.read_csv("trades.csv")
15
 
16
  agent = create_pandas_dataframe_agent(OpenAI(temperature=0.0), [df_holdings,df_trades], verbose=False,agent_executor_kwargs={"handle_parsing_errors": True})
17
- openai = OpenAI(temperature=0.0,model="gpt-3.5-turbo-16k",max_tokens=1000,top_p=1,top_k=0,reduce_k_below_max_tokens=True)
18
 
19
  template = """Answer the question based on the context. If the question is not related to dataframe or not meaningful or a single alphabet then strictly generate Final Answer as "Sorry can not find the answer".Question: {query}"""
20
 
 
14
  df_trades = pd.read_csv("trades.csv")
15
 
16
  agent = create_pandas_dataframe_agent(OpenAI(temperature=0.0), [df_holdings,df_trades], verbose=False,agent_executor_kwargs={"handle_parsing_errors": True})
17
+ openai = OpenAI(temperature=0.0,model="gpt-3.5-turbo-16k",top_p=1,top_k=0,reduce_k_below_max_tokens=True)
18
 
19
  template = """Answer the question based on the context. If the question is not related to dataframe or not meaningful or a single alphabet then strictly generate Final Answer as "Sorry can not find the answer".Question: {query}"""
20