Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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.
|
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}"""
|