mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
code opt
This commit is contained in:
parent
e6494f83ec
commit
cdecf5dad7
3 changed files with 2 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue