Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,10 +29,10 @@ from brief import (
|
|
| 29 |
MODEL_ID = "Qwen/Qwen2.5-72B-Instruct" # Strong free model on HF Inference
|
| 30 |
|
| 31 |
def build_agent() -> ToolCallingAgent:
|
| 32 |
-
model =
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
agent = ToolCallingAgent(
|
| 37 |
tools=[fetch_acled_events, fetch_rss_headlines, list_available_sources],
|
| 38 |
model=model,
|
|
|
|
| 29 |
MODEL_ID = "Qwen/Qwen2.5-72B-Instruct" # Strong free model on HF Inference
|
| 30 |
|
| 31 |
def build_agent() -> ToolCallingAgent:
|
| 32 |
+
model = InferenceClientModel(
|
| 33 |
+
model_id=MODEL_ID,
|
| 34 |
+
token=os.environ.get("HF_TOKEN"),
|
| 35 |
+
)
|
| 36 |
agent = ToolCallingAgent(
|
| 37 |
tools=[fetch_acled_events, fetch_rss_headlines, list_available_sources],
|
| 38 |
model=model,
|