philmui commited on
Commit
a653647
•
1 Parent(s): 7c6adb7

added sales & chinook exception log

Browse files
Files changed (1) hide show
  1. agents.py +2 -2
agents.py CHANGED
@@ -91,7 +91,7 @@ def instructAgent(question_text, model_name):
91
  logger.info(f"🔹 Steps: {response['intermediate_steps']}")
92
  except Exception as e:
93
  output = "Please rephrase and try again ..."
94
- print(f"\t{e}")
95
 
96
  return output
97
 
@@ -104,7 +104,7 @@ def salesAgent(instruction):
104
  print("panda> " + output)
105
  except Exception as e:
106
  logger.error(e)
107
- output = "Please rephrase and try again for company sales data"
108
  return output
109
 
110
  def chinookAgent(instruction, model_name):
 
91
  logger.info(f"🔹 Steps: {response['intermediate_steps']}")
92
  except Exception as e:
93
  output = "Please rephrase and try again ..."
94
+ logger.error(e)
95
 
96
  return output
97
 
 
104
  print("panda> " + output)
105
  except Exception as e:
106
  logger.error(e)
107
+ output = f"Please rephrase and try again for company sales data {e}"
108
  return output
109
 
110
  def chinookAgent(instruction, model_name):