Download examples/research.py from tsi-org/MetaGPT: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/spaces/tsi-org/MetaGPT/resolve/main/examples/research.py
- Command line
-
hf download hf://spaces/tsi-org/MetaGPT/examples/research.py
-
curl -L -o research.py https://huggingface.co/spaces/tsi-org/MetaGPT/resolve/main/examples/research.py
339 Bytes
| #!/usr/bin/env python | |
| import asyncio | |
| from metagpt.roles.researcher import RESEARCH_PATH, Researcher | |
| async def main(): | |
| topic = "dataiku vs. datarobot" | |
| role = Researcher(language="en-us") | |
| await role.run(topic) | |
| print(f"save report to {RESEARCH_PATH / f'{topic}.md'}.") | |
| if __name__ == '__main__': | |
| asyncio.run(main()) | |