gabejavitt commited on
Commit
3ee30cf
·
verified ·
1 Parent(s): 2ecc0ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ def search_tool(query: str) -> str:
66
  except Exception as e:
67
  return f"Error running search: {e}"
68
 
69
- @tooldef
70
  def code_interpreter(code: str) -> str:
71
  """
72
  Executes a string of Python code and returns its stdout, stderr, and any error.
 
66
  except Exception as e:
67
  return f"Error running search: {e}"
68
 
69
+ @tool
70
  def code_interpreter(code: str) -> str:
71
  """
72
  Executes a string of Python code and returns its stdout, stderr, and any error.