Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,8 +13,7 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
13 |
https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
14 |
"""
|
15 |
|
16 |
-
|
17 |
-
model = HfApiModel(client=client) # Pass the InferenceClient to HfApiModel
|
18 |
search_agent = ToolCallingAgent(
|
19 |
tools=[DuckDuckGoSearchTool(), VisitWebpageTool()],
|
20 |
model=model,
|
|
|
13 |
https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
14 |
"""
|
15 |
|
16 |
+
model = HfApiModel(model_id="mistralai/Mistral-7B-Instruct-v0.3", token=os.environ.get("HF_TOKEN")) # Pass the InferenceClient to HfApiModel
|
|
|
17 |
search_agent = ToolCallingAgent(
|
18 |
tools=[DuckDuckGoSearchTool(), VisitWebpageTool()],
|
19 |
model=model,
|