Spaces:
Paused
Paused
Update agents.py
Browse files
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 |
-
#
|
| 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,
|