mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-30 14:35:17 +02:00
feat: +pic2txt
This commit is contained in:
parent
742ff0e80a
commit
632452e2a1
12 changed files with 79 additions and 38 deletions
|
|
@ -9,6 +9,7 @@
|
|||
import asyncio
|
||||
import json
|
||||
import uuid
|
||||
from json import JSONDecodeError
|
||||
from pathlib import Path
|
||||
from typing import Dict, List
|
||||
|
||||
|
|
@ -73,7 +74,10 @@ async def develop(
|
|||
output_dir = Path(output_dir) if output_dir else DEFAULT_WORKSPACE_ROOT / uuid.uuid4().hex
|
||||
|
||||
v = await aread(filename=user_requirement_filename)
|
||||
user_requirements = json.loads(v)
|
||||
try:
|
||||
user_requirements = json.loads(v)
|
||||
except JSONDecodeError:
|
||||
user_requirements = [v]
|
||||
v = await aread(filename=actors_filename)
|
||||
actors = json.loads(v)
|
||||
technical_constraint = await aread(filename=constraint_filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue