wt002 commited on
Commit
a6c4989
·
verified ·
1 Parent(s): b9af282

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -347,6 +347,11 @@ You are an advanced, helpful, and highly analytical research assistant. Your goa
347
  return agent
348
 
349
  def __call__(self, question: str) -> str:
 
 
 
 
 
350
  logger.info(f"Received question: {question[:200]}...") # Log more of the question
351
  try:
352
  response = self.agent.run(question)
 
347
  return agent
348
 
349
  def __call__(self, question: str) -> str:
350
+ print(f"Agent received question (first 50 chars): {question[:50]}...")
351
+ answer = self.agent.run(question)
352
+ print(f"Agent returning answer: {answer}")
353
+ return answer
354
+
355
  logger.info(f"Received question: {question[:200]}...") # Log more of the question
356
  try:
357
  response = self.agent.run(question)