Synnove commited on
Commit
bda7f9d
·
verified ·
1 Parent(s): c697e9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
21
  model = InferenceClientModel() #D
22
 
23
  #Agent
24
- agent = CodeAgent(tools=[], model=model)
25
 
26
  class BasicAgent:
27
  def __init__(self):
@@ -55,7 +55,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
55
  # 1. Instantiate Agent ( modify this part to create your agent)
56
  try:
57
  #agent = BasicAgent()
58
- agent = agent
59
  except Exception as e:
60
  print(f"Error instantiating agent: {e}")
61
  return f"Error initializing agent: {e}", None
 
21
  model = InferenceClientModel() #D
22
 
23
  #Agent
24
+ code_agent = CodeAgent(tools=[], model=model)
25
 
26
  class BasicAgent:
27
  def __init__(self):
 
55
  # 1. Instantiate Agent ( modify this part to create your agent)
56
  try:
57
  #agent = BasicAgent()
58
+ agent = code_agent
59
  except Exception as e:
60
  print(f"Error instantiating agent: {e}")
61
  return f"Error initializing agent: {e}", None