MetaGPT-readme-5.py
· 270 B · Python
Исходник
import asyncio
from metagpt.roles.di.data_interpreter import DataInterpreter
async def main():
di = DataInterpreter()
await di.run("Run data analysis on sklearn Iris dataset, include a plot")
asyncio.run(main()) # or await main() in a jupyter notebook setting
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 |