Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import random
|
|
| 10 |
import json
|
| 11 |
import boto3
|
| 12 |
from smolagents import FinalAnswerTool, Tool, tool, OpenAIServerModel, DuckDuckGoSearchTool, CodeAgent, VisitWebpageTool
|
| 13 |
-
from nova_agent import
|
| 14 |
|
| 15 |
from dotenv import load_dotenv
|
| 16 |
|
|
@@ -81,7 +81,7 @@ class SlpMultiAgent:
|
|
| 81 |
print("BasicAgent initialized.")
|
| 82 |
|
| 83 |
async def __call__(self, question: str) -> str:
|
| 84 |
-
print(f"Agent received question (first 50 chars): {question
|
| 85 |
fixed_answer = "This is a default answer."
|
| 86 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 87 |
|
|
@@ -228,7 +228,7 @@ async def run_and_submit_all(profile):
|
|
| 228 |
|
| 229 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 230 |
try:
|
| 231 |
-
agent =
|
| 232 |
except Exception as e:
|
| 233 |
print(f"Error instantiating agent: {e}")
|
| 234 |
return f"Error initializing agent: {e}", None
|
|
|
|
| 10 |
import json
|
| 11 |
import boto3
|
| 12 |
from smolagents import FinalAnswerTool, Tool, tool, OpenAIServerModel, DuckDuckGoSearchTool, CodeAgent, VisitWebpageTool
|
| 13 |
+
from nova_agent import NovaProAgent
|
| 14 |
|
| 15 |
from dotenv import load_dotenv
|
| 16 |
|
|
|
|
| 81 |
print("BasicAgent initialized.")
|
| 82 |
|
| 83 |
async def __call__(self, question: str) -> str:
|
| 84 |
+
print(f"Agent received question (first 50 chars): {question}...")
|
| 85 |
fixed_answer = "This is a default answer."
|
| 86 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 87 |
|
|
|
|
| 228 |
|
| 229 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 230 |
try:
|
| 231 |
+
agent = NovaProAgent()
|
| 232 |
except Exception as e:
|
| 233 |
print(f"Error instantiating agent: {e}")
|
| 234 |
return f"Error initializing agent: {e}", None
|