2MoOn24mOoN4 commited on
Commit
d6e52fb
·
verified ·
1 Parent(s): d80498a

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +0 -2
agent.py CHANGED
@@ -53,8 +53,6 @@ search_tool = DuckDuckGoSearchTool()
53
  web_search = VisitWebpageTool()
54
  #=======Agent========#
55
  hf_token = os.environ.get("HF_TOKEN")
56
- if not hf_token:
57
- raise ValueError("HF_TOKEN not found in environment variables. Please set it in Space Secrets or login via huggingface-cli.")
58
  model = InferenceClientModel(token=hf_token,'Qwen/Qwen2.5-Coder-32B-Instruct')
59
  agent = CodeAgent(
60
  tools=[
 
53
  web_search = VisitWebpageTool()
54
  #=======Agent========#
55
  hf_token = os.environ.get("HF_TOKEN")
 
 
56
  model = InferenceClientModel(token=hf_token,'Qwen/Qwen2.5-Coder-32B-Instruct')
57
  agent = CodeAgent(
58
  tools=[