Spaces:
Runtime error
Runtime error
|
Download code_interpreter/readme.md from ZackBradshaw/Tools: direct link, hf CLI and curl.
- Browser
- Download file 783 Bytes
-
https://huggingface.co/spaces/ZackBradshaw/Tools/resolve/main/code_interpreter/readme.md
- Command line
-
hf download hf://spaces/ZackBradshaw/Tools/code_interpreter/readme.md
-
curl -L -o readme.md https://huggingface.co/spaces/ZackBradshaw/Tools/resolve/main/code_interpreter/readme.md
783 Bytes
A newer version of the Gradio SDK is available: 6.31.0
Tool Description
The "Python Code Interpreter Tool" is a handy tool designed to execute Python code. It can be used as a simple Python interpreter or a calculator to compute Python expressions.
Tool Specifications
- Name: Python Code Interpreter Tool
- Purpose: Execute Python codes
- Name for Model: code_interpreter
- Model Description: Plugin for executing python codes
Core Functionality
execute_codeThis method accepts a Python code string as input and executes it using a Python interpreter. It can also be used as a simple calculator. For example, sending a request with code
(123 + 234) / 23 * 19will return the result of this expression.
The tool makes use of the CodeInterpreter class which is capable of running Python code.