PoetNameLife commited on
Commit
0a89c08
·
verified ·
1 Parent(s): 1135eab

Update agents.py

Browse files
Files changed (1) hide show
  1. agents.py +3 -3
agents.py CHANGED
@@ -20,13 +20,13 @@ def autonomous_spectrum_scrub(frequency_range: str) -> str:
20
  # Securely grab the token
21
  token = os.getenv("HF_TOKEN")
22
 
23
- # Explicitly use Hugging Face's own inference to avoid 403 errors
24
  model = HfApiModel(
25
  model_id="mistralai/Mistral-7B-Instruct-v0.3",
26
- token=token,
27
- provider="hf-inference" # Forces the use of HF's native engine
28
  )
29
 
 
30
  nano_patrol_agent = ToolCallingAgent(
31
  tools=[autonomous_spectrum_scrub],
32
  model=model,
 
20
  # Securely grab the token
21
  token = os.getenv("HF_TOKEN")
22
 
23
+ # Removed 'provider' to fix the TypeError
24
  model = HfApiModel(
25
  model_id="mistralai/Mistral-7B-Instruct-v0.3",
26
+ token=token
 
27
  )
28
 
29
+ # Mandatory tags included for security
30
  nano_patrol_agent = ToolCallingAgent(
31
  tools=[autonomous_spectrum_scrub],
32
  model=model,