update readme
This commit is contained in:
@@ -179,6 +179,6 @@ playwright install
|
||||
```
|
||||
|
||||
## Changelog
|
||||
|
||||
- [x] **2025/01/26:** Thanks to @vvincent1234. Now browser-use-webui can combine with DeepSeek-r1 to engage in deep thinking!
|
||||
- [x] **2025/01/10:** Thanks to @casistack. Now we have Docker Setup option and also Support keep browser open between tasks.[Video tutorial demo](https://github.com/browser-use/web-ui/issues/1#issuecomment-2582511750).
|
||||
- [x] **2025/01/06:** Thanks to @richard-devbot. A New and Well-Designed WebUI is released. [Video tutorial demo](https://github.com/warmshao/browser-use-webui/issues/1#issuecomment-2573393113).
|
||||
@@ -1,6 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/1
|
||||
# @Author : wenshao
|
||||
# @Email : wenshaoguo1026@gmail.com
|
||||
# @Project : browser-use-webui
|
||||
# @FileName: __init__.py.py
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/1
|
||||
# @Author : wenshao
|
||||
# @Email : wenshaoguo1026@gmail.com
|
||||
# @Project : browser-use-webui
|
||||
# @FileName: __init__.py.py
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/2
|
||||
# @Author : wenshao
|
||||
# @ProjectName: browser-use-webui
|
||||
# @FileName: custom_agent.py
|
||||
|
||||
import json
|
||||
import logging
|
||||
import pdb
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/2
|
||||
# @Author : wenshao
|
||||
# @ProjectName: browser-use-webui
|
||||
# @FileName: custom_massage_manager.py
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/2
|
||||
# @Author : wenshao
|
||||
# @ProjectName: browser-use-webui
|
||||
# @FileName: custom_prompts.py
|
||||
import pdb
|
||||
from typing import List, Optional
|
||||
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/2
|
||||
# @Author : wenshao
|
||||
# @ProjectName: browser-use-webui
|
||||
# @FileName: custom_views.py
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import Type
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/1
|
||||
# @Author : wenshao
|
||||
# @Email : wenshaoguo1026@gmail.com
|
||||
# @Project : browser-use-webui
|
||||
# @FileName: __init__.py.py
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/6
|
||||
# @Author : wenshao
|
||||
# @ProjectName: browser-use-webui
|
||||
# @FileName: config.py
|
||||
|
||||
import os
|
||||
from dataclasses import dataclass
|
||||
from typing import Optional
|
||||
|
||||
|
||||
@dataclass
|
||||
class BrowserPersistenceConfig:
|
||||
"""Configuration for browser persistence"""
|
||||
|
||||
persistent_session: bool = False
|
||||
user_data_dir: Optional[str] = None
|
||||
debugging_port: Optional[int] = None
|
||||
debugging_host: Optional[str] = None
|
||||
|
||||
@classmethod
|
||||
def from_env(cls) -> "BrowserPersistenceConfig":
|
||||
"""Create config from environment variables"""
|
||||
return cls(
|
||||
persistent_session=os.getenv("CHROME_PERSISTENT_SESSION", "").lower()
|
||||
== "true",
|
||||
user_data_dir=os.getenv("CHROME_USER_DATA"),
|
||||
debugging_port=int(os.getenv("CHROME_DEBUGGING_PORT", "9222")),
|
||||
debugging_host=os.getenv("CHROME_DEBUGGING_HOST", "localhost"),
|
||||
)
|
||||
@@ -1,9 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/2
|
||||
# @Author : wenshao
|
||||
# @ProjectName: browser-use-webui
|
||||
# @FileName: browser.py
|
||||
|
||||
import asyncio
|
||||
import pdb
|
||||
|
||||
@@ -20,7 +14,6 @@ from browser_use.browser.context import BrowserContext, BrowserContextConfig
|
||||
from playwright.async_api import BrowserContext as PlaywrightBrowserContext
|
||||
import logging
|
||||
|
||||
from .config import BrowserPersistenceConfig
|
||||
from .custom_context import CustomBrowserContext
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/1
|
||||
# @Author : wenshao
|
||||
# @Email : wenshaoguo1026@gmail.com
|
||||
# @Project : browser-use-webui
|
||||
# @FileName: context.py
|
||||
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
@@ -14,7 +7,6 @@ from browser_use.browser.context import BrowserContext, BrowserContextConfig
|
||||
from playwright.async_api import Browser as PlaywrightBrowser
|
||||
from playwright.async_api import BrowserContext as PlaywrightBrowserContext
|
||||
|
||||
from .config import BrowserPersistenceConfig
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/2
|
||||
# @Author : wenshao
|
||||
# @ProjectName: browser-use-webui
|
||||
# @FileName: __init__.py.py
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/2
|
||||
# @Author : wenshao
|
||||
# @ProjectName: browser-use-webui
|
||||
# @FileName: custom_action.py
|
||||
|
||||
import pyperclip
|
||||
from browser_use.agent.views import ActionResult
|
||||
from browser_use.browser.context import BrowserContext
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/1
|
||||
# @Author : wenshao
|
||||
# @Email : wenshaoguo1026@gmail.com
|
||||
# @Project : browser-use-webui
|
||||
# @FileName: __init__.py.py
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/1
|
||||
# @Author : wenshao
|
||||
# @Email : wenshaoguo1026@gmail.com
|
||||
# @Project : browser-use-webui
|
||||
# @FileName: utils.py
|
||||
import base64
|
||||
import os
|
||||
import time
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/2
|
||||
# @Author : wenshao
|
||||
# @ProjectName: browser-use-webui
|
||||
# @FileName: test_browser_use.py
|
||||
import pdb
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/1
|
||||
# @Author : wenshao
|
||||
# @Email : wenshaoguo1026@gmail.com
|
||||
# @Project : browser-use-webui
|
||||
# @FileName: test_llm_api.py
|
||||
import os
|
||||
import pdb
|
||||
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/2
|
||||
# @Author : wenshao
|
||||
# @Email : wenshaoguo1026@gmail.com
|
||||
# @Project : browser-use-webui
|
||||
# @FileName: test_playwright.py
|
||||
import pdb
|
||||
from dotenv import load_dotenv
|
||||
|
||||
|
||||
8
webui.py
8
webui.py
@@ -1,10 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2025/1/1
|
||||
# @Author : wenshao
|
||||
# @Email : wenshaoguo1026@gmail.com
|
||||
# @Project : browser-use-webui
|
||||
# @FileName: webui.py
|
||||
|
||||
import pdb
|
||||
import logging
|
||||
|
||||
@@ -35,7 +28,6 @@ from src.utils import utils
|
||||
from src.agent.custom_agent import CustomAgent
|
||||
from src.browser.custom_browser import CustomBrowser
|
||||
from src.agent.custom_prompts import CustomSystemPrompt
|
||||
from src.browser.config import BrowserPersistenceConfig
|
||||
from src.browser.custom_context import BrowserContextConfig, CustomBrowserContext
|
||||
from src.controller.custom_controller import CustomController
|
||||
from gradio.themes import Citrus, Default, Glass, Monochrome, Ocean, Origin, Soft, Base
|
||||
|
||||
Reference in New Issue
Block a user