Added HfApiModel import to web browser example (#461)

This commit is contained in:
Sergio Paniego Blanco 2025-02-04 12:34:15 +01:00 committed by GitHub
parent d69ae028fa
commit a6d2cdaaef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ def save_screenshot(memory_step: ActionStep, agent: CodeAgent) -> None:
Now let's create our web automation agent:
```python
from smolagents import HfApiModel
# Initialize the model
model_id = "meta-llama/Llama-3.3-70B-Instruct" # You can change this to your preferred model
model = HfApiModel(model_id)