forked from geekan/MetaGPT
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix human interact bug & add example
- Loading branch information
1 parent
cf344c2
commit a989a1a
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters