Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

Runway Module

The Runway module exposes three simple functions that can be combined to expose your models to the Runway app using a simple interface.

  • @runway.setup(): A Python decorator used to initialize and configure your model.
  • @runway.command(): A Python decorator used to define the interface to your model. Each command creates an HTTP route which can process user input and return outputs from the model.
  • runway.run(): The entrypoint function that starts the SDK's HTTP interface. It fires the function decorated by @runway.setup() and listens for commands on the network, forwarding them along to the appropriate functions decorated with @runway.command().

Reference

.. automodule:: runway

.. autofunction:: setup(decorated_fn=None, options=None)
.. autofunction:: command(name, inputs={}, outputs={})
.. autofunction:: run(host='0.0.0.0', port=9000, model_options={}, debug=False, meta=False)