model
- Contains main parameters of the model/scripturl
(string) - URL of a JS/Python file to load, or:code
(function) - It's possible to pass code to a Port object instead of an urlname
(string) - Name of the callable object. Default value is taken fromurl
orcode
autorun
(boolean, default -false
) - Defines if the script should be evaluated on each input changetype
(string) - What kind of script is loaded. Influences how the code is initializated. Possible values:function
(default)class
async-function
async-init
py
tf
method
(string) - Iftype
isclass
, defines the name of the class method to call during evaluationcontainer
(string) - How input values are passed to the function/method:object
(default) - Pass inputs wrapped in an object, i.e.{'x': 1, 'y': 2}
args
- Pass inputs as separate arguments
worker
(boolean) - Iftrue
the script will be run in a Web Worker
forked from michaelmccracken90/port
-
Notifications
You must be signed in to change notification settings - Fork 0
Port. Web UI for JavaScript methods, Python scripts and ML models
Bind-Forward/port
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Port. Web UI for JavaScript methods, Python scripts and ML models
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 74.1%
- HTML 21.2%
- CSS 4.7%