Spaces:
Runtime error
Runtime error
eaglelandsonce
commited on
Commit
•
e6b2623
1
Parent(s):
82122d2
Create query_solver.py
Browse files- query_solver.py +14 -0
query_solver.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import sys
|
2 |
+
import json
|
3 |
+
import autogen
|
4 |
+
from autogen.agentchat.contrib.math_user_proxy_agent import MathUserProxyAgent
|
5 |
+
|
6 |
+
def run_query(math_problem, api_key):
|
7 |
+
# ... (Same code as before)
|
8 |
+
|
9 |
+
if __name__ == "__main__":
|
10 |
+
input_data = json.loads(sys.stdin.read())
|
11 |
+
math_problem = input_data['math_problem']
|
12 |
+
api_key = input_data['api_key']
|
13 |
+
result = run_query(math_problem, api_key)
|
14 |
+
print(result)
|