Spaces:
Runtime error
Runtime error
Download app.py from sujansaitej/BrowsingAgent: direct link, hf CLI and curl.
- Browser
- Download file 669 Bytes
-
https://huggingface.co/spaces/sujansaitej/BrowsingAgent/resolve/main/app.py
- Command line
-
hf download hf://spaces/sujansaitej/BrowsingAgent/app.py
-
curl -L -o app.py https://huggingface.co/spaces/sujansaitej/BrowsingAgent/resolve/main/app.py
669 Bytes
| import sys | |
| sys.path.insert(0, "../") | |
| # don't run this cell if you have already set the key in environment variables | |
| from agency_swarm import set_openai_key | |
| set_openai_key("") | |
| from agency_swarm import Agency, Agent | |
| from agency_swarm.agents import BrowsingAgent, Devid | |
| selenium_config = { | |
| # your profile path | |
| # "chrome_profile_path": "/Users/vrsen/Library/Application Support/Google/Chrome Canary/Profile 1", | |
| "headless": False, | |
| "full_page_screenshot": False, | |
| } | |
| browsing_agent = BrowsingAgent(selenium_config=selenium_config) | |
| agency = Agency([browsing_agent]) | |
| demo = agency.demo_gradio(height=700) # reload the notebook each time you run this cell |