Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix: load dotenv call

BroskyBrowser0b02c590a7a3
diff --git a/eval/service.py b/eval/service.py
index f5c3ae2a0..fe4b2ee52 100644
--- a/eval/service.py
+++ b/eval/service.py
@@ -48,6 +48,7 @@ import shutil
import anyio
import requests
+from dotenv import load_dotenv
from PIL import Image
MAX_IMAGE = 5
@@ -55,6 +56,9 @@ MAX_IMAGE = 5
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
+# Load dotenv
+load_dotenv()
+
# Check for Anchor Browser API key
ANCHOR_BROWSER_API_KEY = os.getenv('ANCHOR_BROWSER_API_KEY')
if ANCHOR_BROWSER_API_KEY: