mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
updata di example and Change the location of the .ipynb locations
This commit is contained in:
parent
893501fd35
commit
83e5eb133a
2 changed files with 12 additions and 5 deletions
|
|
@ -1,14 +1,21 @@
|
|||
import asyncio
|
||||
|
||||
import os
|
||||
import sys
|
||||
import metagpt.utils
|
||||
from metagpt.logs import logger
|
||||
from metagpt.utils.recovery_util import save_history
|
||||
from metagpt.roles.di.data_interpreter import DataInterpreter
|
||||
|
||||
|
||||
async def main(requirement: str = ""):
|
||||
|
||||
di = DataInterpreter()
|
||||
await di.run(requirement)
|
||||
rsp = await di.run(requirement)
|
||||
logger.info(rsp)
|
||||
save_history(role=di)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
requirement = "Run data analysis on sklearn Iris dataset, include a plot"
|
||||
|
||||
requirement = "Run data analysis on sklearn Iris dataset, include a plot"
|
||||
asyncio.run(main(requirement))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue