Spaces:
Build error
Build error
Download examples/di/solve_math_problems.py from ositamiles/SPO: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/spaces/ositamiles/SPO/resolve/main/examples/di/solve_math_problems.py
- Command line
-
hf download hf://spaces/ositamiles/SPO/examples/di/solve_math_problems.py
-
curl -L -o solve_math_problems.py https://huggingface.co/spaces/ositamiles/SPO/resolve/main/examples/di/solve_math_problems.py
470 Bytes
| import asyncio | |
| from metagpt.roles.di.data_interpreter import DataInterpreter | |
| async def main(requirement: str = ""): | |
| di = DataInterpreter() | |
| await di.run(requirement) | |
| if __name__ == "__main__": | |
| requirement = "Solve this math problem: The greatest common divisor of positive integers m and n is 6. The least common multiple of m and n is 126. What is the least possible value of m + n?" | |
| # answer: 60 (m = 18, n = 42) | |
| asyncio.run(main(requirement)) | |