This commit is contained in:
liuminhui 2025-02-28 17:13:30 +08:00
parent e6494f83ec
commit cdecf5dad7
3 changed files with 2 additions and 6 deletions

View file

@ -9,7 +9,7 @@ from pathlib import Path
import typer
from metagpt.config2 import Config
from metagpt.config2 import config
from metagpt.environment.android.android_env import AndroidEnv
from metagpt.ext.android_assistant.roles.android_assistant import AndroidAssistant
from metagpt.team import Team
@ -41,7 +41,6 @@ def startup(
),
device_id: str = typer.Option(default="emulator-5554", help="The Android device_id"),
):
config = Config.default()
config.extra = {
"stage": stage,
"mode": mode,

View file

@ -12,7 +12,6 @@ async def main():
Image path: {image_path}.
NOTE: The environments for Paddle and PaddleOCR are all ready and has been fully installed."""
di = DataInterpreter(react_mode="react")
print(requirement)
await di.run(requirement)

View file

@ -1,6 +1,6 @@
import asyncio
from metagpt.config2 import Config
from metagpt.config2 import config
from metagpt.const import EXAMPLE_DATA_PATH
from metagpt.logs import logger
from metagpt.rag.parsers import OmniParse
@ -12,8 +12,6 @@ TEST_PDF = EXAMPLE_DATA_PATH / "omniparse/test02.pdf"
TEST_VIDEO = EXAMPLE_DATA_PATH / "omniparse/test03.mp4"
TEST_AUDIO = EXAMPLE_DATA_PATH / "omniparse/test04.mp3"
config = Config.default()
async def omniparse_client_example():
client = OmniParseClient(base_url=config.omniparse.base_url)