Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,9 @@ import aiohttp
|
|
| 8 |
import time
|
| 9 |
import random
|
| 10 |
import json
|
|
|
|
| 11 |
from smolagents import FinalAnswerTool, Tool, tool, OpenAIServerModel, DuckDuckGoSearchTool, CodeAgent, VisitWebpageTool
|
| 12 |
-
|
| 13 |
|
| 14 |
from dotenv import load_dotenv
|
| 15 |
|
|
@@ -227,7 +228,7 @@ async def run_and_submit_all(profile):
|
|
| 227 |
|
| 228 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 229 |
try:
|
| 230 |
-
agent =
|
| 231 |
except Exception as e:
|
| 232 |
print(f"Error instantiating agent: {e}")
|
| 233 |
return f"Error initializing agent: {e}", None
|
|
|
|
| 8 |
import time
|
| 9 |
import random
|
| 10 |
import json
|
| 11 |
+
import boto3
|
| 12 |
from smolagents import FinalAnswerTool, Tool, tool, OpenAIServerModel, DuckDuckGoSearchTool, CodeAgent, VisitWebpageTool
|
| 13 |
+
from nova_agent import NovaLiteAgent
|
| 14 |
|
| 15 |
from dotenv import load_dotenv
|
| 16 |
|
|
|
|
| 228 |
|
| 229 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 230 |
try:
|
| 231 |
+
agent = NovaLiteAgent()
|
| 232 |
except Exception as e:
|
| 233 |
print(f"Error instantiating agent: {e}")
|
| 234 |
return f"Error initializing agent: {e}", None
|