Facelook commited on
Commit
b415833
·
1 Parent(s): 203f524

Fixed 'str' object is not callable error.

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,7 +25,8 @@ class BasicAgent:
25
 
26
  try:
27
  search_result = self.agent.run(question) # CodeAgent typically uses .run()
28
- answer = f"Search result for '{question[:50]}...': {search_result}"
 
29
  except Exception as e:
30
  answer = f"Error during search: {e}"
31
 
 
25
 
26
  try:
27
  search_result = self.agent.run(question) # CodeAgent typically uses .run()
28
+ # Return the search result directly - it's already a string
29
+ answer = str(search_result)
30
  except Exception as e:
31
  answer = f"Error during search: {e}"
32