alanwnl commited on
Commit
18de6d9
·
1 Parent(s): 708bf80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -37,7 +37,7 @@ if submit_button :
37
  openai_api_version="2023-03-15-preview",
38
  openai_api_type="azure",
39
  openai_api_base="https://api.hku.hk",
40
- openai_api_key=user_api_key,
41
  )
42
 
43
  agent = create_pandas_dataframe_agent(
@@ -45,6 +45,7 @@ if submit_button :
45
  df=df,
46
  verbose=True,
47
  agent_type=AgentType.OPENAI_FUNCTIONS,
 
48
  )
49
 
50
  result = agent.run(text_prompt)
 
37
  openai_api_version="2023-03-15-preview",
38
  openai_api_type="azure",
39
  openai_api_base="https://api.hku.hk",
40
+ openai_api_key="03b2e8d902434b0792ce162d250e492a",
41
  )
42
 
43
  agent = create_pandas_dataframe_agent(
 
45
  df=df,
46
  verbose=True,
47
  agent_type=AgentType.OPENAI_FUNCTIONS,
48
+ handle_parsing_errors="Check your output and make sure it conforms!",
49
  )
50
 
51
  result = agent.run(text_prompt)