Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,8 @@ def search_tool(query: str) -> str:
|
|
| 73 |
def code_interpreter(code: str) -> str:
|
| 74 |
"""
|
| 75 |
Executes a string of Python code and returns its stdout, stderr, and any error.
|
| 76 |
-
Use this for calculations, data manipulation (including pandas on dataframes read from files), list operations, string manipulations, or
|
|
|
|
| 77 |
The code runs in a sandboxed environment. 'pandas' (as pd) and 'openpyxl' are available.
|
| 78 |
Ensure the code is complete and executable. If printing, use print().
|
| 79 |
"""
|
|
|
|
| 73 |
def code_interpreter(code: str) -> str:
|
| 74 |
"""
|
| 75 |
Executes a string of Python code and returns its stdout, stderr, and any error.
|
| 76 |
+
Use this for calculations, data manipulation (including pandas on dataframes read from files), list operations, string manipulations, or to solve logic puzzles step-by-step.
|
| 77 |
+
When solving a logic problem, write out all the steps of your reasoning as comments in the code.
|
| 78 |
The code runs in a sandboxed environment. 'pandas' (as pd) and 'openpyxl' are available.
|
| 79 |
Ensure the code is complete and executable. If printing, use print().
|
| 80 |
"""
|