wt002 commited on
Commit
30f80eb
·
verified ·
1 Parent(s): 9af2eae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -12,9 +12,9 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
12
 
13
  # --- Basic Agent Definition ---
14
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
15
- class AdvancedAIAgent:
16
  def __init__(self):
17
- print("AdvancedAIAgent initialized.")
18
  def __call__(self, question: str) -> str:
19
  print(f"Agent received question (first 50 chars): {question[:50]}...")
20
  messages = [HumanMessage(content=question)]
@@ -43,7 +43,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
43
 
44
  # 1. Instantiate Agent ( modify this part to create your agent)
45
  try:
46
- agent = AdvancedAIAgent()
47
  except Exception as e:
48
  print(f"Error instantiating agent: {e}")
49
  return f"Error initializing agent: {e}", None
 
12
 
13
  # --- Basic Agent Definition ---
14
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
15
+ class AIAgent:
16
  def __init__(self):
17
+ print("AIAgent initialized.")
18
  def __call__(self, question: str) -> str:
19
  print(f"Agent received question (first 50 chars): {question[:50]}...")
20
  messages = [HumanMessage(content=question)]
 
43
 
44
  # 1. Instantiate Agent ( modify this part to create your agent)
45
  try:
46
+ agent = AIAgent()
47
  except Exception as e:
48
  print(f"Error instantiating agent: {e}")
49
  return f"Error initializing agent: {e}", None