forked from geekan/MetaGPT
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat_math_sovler' of https://github.com/didiforgithub/M…
…etaGPT into feat_math_sovler
- Loading branch information
Showing
2 changed files
with
10 additions
and
8 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
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 |
---|---|---|
|
@@ -3,14 +3,16 @@ | |
# Author : Jiayi Zhang | ||
# email : [email protected] | ||
# Description: run math ai | ||
import sys | ||
import os | ||
import asyncio | ||
|
||
# add metagpt rootpath to syspath | ||
meta_rootpath = os.getcwd() | ||
if meta_rootpath not in sys.path: | ||
sys.path.append(meta_rootpath) | ||
# import sys | ||
# import os | ||
# meta_rootpath = os.getcwd() | ||
# if meta_rootpath not in sys.path: | ||
# sys.path.append(meta_rootpath) | ||
|
||
|
||
import asyncio | ||
from math_ai.codebase.gate_controller import GateController | ||
from math_ai.codebase.math_resovler import MathResolver | ||
from math_ai.codebase.data_processer import DataProcesser | ||
|
@@ -39,5 +41,5 @@ async def main(question_path: str): | |
print(solutions) | ||
|
||
if __name__ == '__main__': | ||
question_path = '/Users/mac/Github_project/MathAI/math_ai/dataset/2021.json' | ||
question_path = 'H:/Hack/Ali/dataset/2021.json' | ||
asyncio.run(main(question_path)) |