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.
create ci example folder, mv existing and create new
- Loading branch information
1 parent
ea6c440
commit 18a17be
Showing
6 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import asyncio | ||
|
||
from metagpt.roles.ci.code_interpreter import CodeInterpreter | ||
|
||
|
||
async def main(requirement: str = ""): | ||
code_interpreter = CodeInterpreter(use_tools=False) | ||
await code_interpreter.run(requirement) | ||
|
||
|
||
if __name__ == "__main__": | ||
requirement = "Run data analysis on sklearn Iris dataset, include a plot" | ||
|
||
asyncio.run(main(requirement)) |
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import asyncio | ||
|
||
from metagpt.roles.ci.code_interpreter import CodeInterpreter | ||
|
||
|
||
async def main(requirement: str = ""): | ||
code_interpreter = CodeInterpreter(use_tools=False) | ||
await code_interpreter.run(requirement) | ||
|
||
|
||
if __name__ == "__main__": | ||
image_path = "/your/path/to/the/image.jpeg" | ||
save_path = "/your/intended/save/path/for/image_rm_bg.png" | ||
requirement = f"This is a image, you need to use python toolkit rembg to remove the background of the image and save the result. image path:{image_path}; save path:{save_path}." | ||
asyncio.run(main(requirement)) |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import asyncio | ||
|
||
from metagpt.roles.ci.code_interpreter import CodeInterpreter | ||
|
||
|
||
async def main(requirement: str = ""): | ||
code_interpreter = CodeInterpreter(use_tools=False, goal=requirement) | ||
await code_interpreter.run(requirement) | ||
|
||
|
||
if __name__ == "__main__": | ||
problem = "At a school, all 60 students play on at least one of three teams: Basketball, Soccer, and Mathletics. 8 students play all three sports, half the students play basketball, and the ratio of the size of the math team to the size of the basketball team to the size of the soccer team is $4:3:2$. How many students at the school play on exactly two teams?" | ||
requirement = ( | ||
f"This is a math problem:{problem}. You can analyze and solve it step by step or use Python code to solve it." | ||
) | ||
|
||
asyncio.run(main(requirement)) |