mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
Merge branch 'v0.7-release' into v07-to-main
This commit is contained in:
commit
c97fbaef9d
6 changed files with 11 additions and 11 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import asyncio
|
||||
import fire
|
||||
|
||||
from metagpt.roles.mi.interpreter import Interpreter
|
||||
|
||||
|
||||
async def main(requirement: str):
|
||||
mi = Interpreter(auto_run=True, use_tools=False)
|
||||
async def main(auto_run: bool = True):
|
||||
requirement = "Run data analysis on sklearn Wine recognition dataset, include a plot, and train a model to predict wine class (20% as validation), and show validation accuracy."
|
||||
mi = Interpreter(auto_run=auto_run)
|
||||
await mi.run(requirement)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
requirement = "Run data analysis on sklearn Wine recognition dataset, include a plot, and train a model to predict wine class (20% as validation), and show validation accuracy."
|
||||
asyncio.run(main(requirement))
|
||||
fire.Fire(main)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue