Skip to content

Commit

Permalink
chore: update docs example
Browse files Browse the repository at this point in the history
  • Loading branch information
adeprez committed Oct 1, 2024
1 parent 6724dd2 commit ed22df9
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,10 @@ pip install lavague
2. Use our framework to build a Web Agent and implement the objective:

```python
from lavague.core import WorldModel, ActionEngine
from lavague.core.agents import WebAgent
from lavague.drivers.selenium import SeleniumDriver

selenium_driver = SeleniumDriver(headless=False)
world_model = WorldModel()
action_engine = ActionEngine(selenium_driver)
agent = WebAgent(world_model, action_engine)
agent.get("https://huggingface.co/docs")
agent.run("Go on the quicktour of PEFT")

# Launch Gradio Agent Demo
agent.demo("Go on the quicktour of PEFT")
from lavague.sdk import WebAgent

agent = WebAgent()
trajectory = agent.run("https://huggingface.co/docs", "Go on the quicktour of PEFT")
```

For more information on this example and how to use LaVague, see our [quick-tour](https://docs.lavague.ai/en/latest/docs/get-started/quick-tour/).
Expand Down

0 comments on commit ed22df9

Please sign in to comment.