Features / Sandbox
Run Python on your files.
Put a spreadsheet in Files and ask for a chart. The Sandbox runs the code and saves the result in Files.
New in LocalAI 5.0. Needs 5.0 or newer.
pythonnetwork off
import pandas as pd df = pd.read_excel("data.xlsx") df.plot().figure.savefig("chart.png")
chart.png
Saved in Files. Listed in History, with Undo.
What it does
- Run Python and shell commands on your files.
- Code runs in an isolated sandbox (KVM or gVisor).
- The sandbox has no internet by default.
- Results are saved as files in Files.
- Changes are listed in History, with an Undo button.
- With the media profile (ffmpeg, sox, ImageMagick), the assistant can join, trim, mix and subtitle clips.
Good to know
- Sandbox is an add-on. An admin installs it. It runs on Linux. The macOS package for Apple silicon is built but not released yet.
- An admin can allow network access.