Dalageo commited on
Commit
02afdea
·
verified ·
1 Parent(s): d0abf90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def calculator_tool(expression: str)-> str: # Returns a string result
20
  """
21
  try:
22
  api_url = "https://mathsolver.microsoft.com/en/solve-problem/A%20p%20i"
23
- response = requests.post((api_url, json={"expr": expression}))
24
 
25
  if response.status_code == 200:
26
  return f"Result: {response.json()}"
 
20
  """
21
  try:
22
  api_url = "https://mathsolver.microsoft.com/en/solve-problem/A%20p%20i"
23
+ response = requests.post(api_url, json={"expr": expression})
24
 
25
  if response.status_code == 200:
26
  return f"Result: {response.json()}"