Kackle commited on
Commit
58e55fe
·
verified ·
1 Parent(s): bc88d6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 NovaLiteAgent
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[:50]}...")
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 = NovaLiteAgent()
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