LavleshJ commited on
Commit
0639ff7
·
verified ·
1 Parent(s): 52e99e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,9 +14,9 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
14
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
15
  class BasicAgent:
16
  def __init__(self):
17
- self.model = HfApiKeyModel(model_id="meta-llama/Llama-3.2-3B-Instruct")
18
  # CodeAgent allows the model to use a python interpreter to solve complex problems
19
- self.agent = CodeAgent(tools=[], model=self.model, add_base_tools=True)
20
  print("Smolagents CodeAgent initialized.")
21
 
22
  def __call__(self, question: str) -> str:
 
14
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
15
  class BasicAgent:
16
  def __init__(self):
17
+ self.model_id = "meta-llama/Llama-3.2-3B-Instruct"
18
  # CodeAgent allows the model to use a python interpreter to solve complex problems
19
+ self.agent = CodeAgent(tools=[], model=self.model_id, add_base_tools=True)
20
  print("Smolagents CodeAgent initialized.")
21
 
22
  def __call__(self, question: str) -> str: