andreasjansson / exec-python

  • Public
  • 190 runs
  • CPU

Input

*string
Shift + Return to add a new line

Python code to execute in a Python 3.12 environment. You have access to the following external packages that you may import: numpy==2.2.4, scipy==1.15.2, pillow==10.4.0, matplotlib==3.10.1, moviepy==2.1.2, opencv-python==4.11.0.86, uv==0.7.3. You also have access to the following command line system packages that you may subprocess to: imagemagick, ffmpeg, sox. Your code will be executed in a temporary directory. If you provided a zip file, its contents will be extracted to this directory before your code runs. Any file outputs should be written to the current working directory. Only files created in this directory will be returned, along with stdout from the script.

file

Optional ZIP file containing code, data, or other files that will be extracted to the execution directory and available to the script.

file

An optional file to be used by the code. Access via `file1` (of type pathlib.Path) in your code (e.g. `Image.open(file1.name)`). Files must be passed through these inputs as the execution environment has no other file access.

file

An optional file to be used by the code. Access via `file2` (of type pathlib.Path) in your code (e.g. `Image.open(file2.name)`). Files must be passed through these inputs as the execution environment has no other file access.

file

An optional file to be used by the code. Access via `file3` (of type pathlib.Path) in your code (e.g. `Image.open(file3.name)`). Files must be passed through these inputs as the execution environment has no other file access.

file

An optional file to be used by the code. Access via `file4` (of type pathlib.Path) in your code (e.g. `Image.open(file4.name)`). Files must be passed through these inputs as the execution environment has no other file access.

file

An optional file to be used by the code. Access via `file5` (of type pathlib.Path) in your code (e.g. `Image.open(file5.name)`). Files must be passed through these inputs as the execution environment has no other file access.

string[]

List of additional Python package requirements to install with uv

Default: []

string[]

List of additional system packages to install with apt-get

Default: []

integer
(minimum: 1, maximum: 600)

Script timeout in seconds

Default: 300

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model runs on CPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

This model doesn't have a readme.