Last active 1728774611

knox revised this gist 1728774611. Go to revision

1 file changed, 8 insertions

MetaGPT-readme-5.py(file created)

@@ -0,0 +1,8 @@
1 + import asyncio
2 + from metagpt.roles.di.data_interpreter import DataInterpreter
3 +
4 + async def main():
5 + di = DataInterpreter()
6 + await di.run("Run data analysis on sklearn Iris dataset, include a plot")
7 +
8 + asyncio.run(main()) # or await main() in a jupyter notebook setting
Newer Older