agnprz commited on
Commit
838733f
·
verified ·
1 Parent(s): de8677e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -8,6 +8,7 @@ from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel
8
  # (Keep Constants as is)
9
  # --- Constants ---
10
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
11
 
12
  # --- Basic Agent Definition ---
13
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
@@ -15,7 +16,8 @@ class BasicAgent:
15
  def __init__(self):
16
  model = InferenceClientModel()
17
  search_tool = DuckDuckGoSearchTool(
18
- model_id="Qwen/Qwen2.5-Coder-32B-Instruct"
 
19
  )
20
  self.agent = CodeAgent(
21
  tools=[search_tool],
 
8
  # (Keep Constants as is)
9
  # --- Constants ---
10
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
11
+ HF_TOKEN = os.getenv("HF_TOKEN")
12
 
13
  # --- Basic Agent Definition ---
14
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
 
16
  def __init__(self):
17
  model = InferenceClientModel()
18
  search_tool = DuckDuckGoSearchTool(
19
+ model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
20
+ token=HF_TOKEN
21
  )
22
  self.agent = CodeAgent(
23
  tools=[search_tool],