tatianija commited on
Commit
fa409c7
·
verified ·
1 Parent(s): 202098f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -394,7 +394,7 @@ class AudioTranscriptionTool:
394
  # --- Enhanced Intelligent Agent with Direct Attachment Processing ---
395
  class IntelligentAgent:
396
  def __init__(self, debug: bool = True, model_name: str = "meta-llama/Llama-3.1-8B-Instruct"):
397
- self.search = DuckDuckGoSearchTool()
398
  self.client = InferenceClient(model=model_name, provider="sambanova")
399
  self.image_tool = ImageAnalysisTool()
400
  self.audio_tool = AudioTranscriptionTool()
@@ -632,7 +632,7 @@ Answer with just "YES" if web search would be helpful, or "NO" if the available
632
  """
633
  try:
634
  # Perform search
635
- search_results = self.search.call(question)
636
 
637
  # Combine all contexts
638
  full_context = f"""Question: {question} Search Results: {search_results} {attachment_context}{url_context}"""
 
394
  # --- Enhanced Intelligent Agent with Direct Attachment Processing ---
395
  class IntelligentAgent:
396
  def __init__(self, debug: bool = True, model_name: str = "meta-llama/Llama-3.1-8B-Instruct"):
397
+ self.search_tool = DuckDuckGoSearchTool()
398
  self.client = InferenceClient(model=model_name, provider="sambanova")
399
  self.image_tool = ImageAnalysisTool()
400
  self.audio_tool = AudioTranscriptionTool()
 
632
  """
633
  try:
634
  # Perform search
635
+ search_results = self.search_tool.forward(query_text)
636
 
637
  # Combine all contexts
638
  full_context = f"""Question: {question} Search Results: {search_results} {attachment_context}{url_context}"""