Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
@
|
| 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.
|