Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Fixed generate input parameters #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed generate input parameters
Seems to be swapped with the output parameters. The error is a bit confusing, but I hope I did a proper correction
mprinc authored Apr 17, 2020
commit 83168beb61df880e89c914086f58a9dacb9329c7
4 changes: 2 additions & 2 deletions docs/source/index.md
Original file line number Diff line number Diff line change
@@ -63,8 +63,8 @@ def generate(model, input_args):
# usually a model.
# 2. The input arguments sent by the remote caller via HTTP. These values
# match the schema defined by inputs.
img = input_args['image']
return model.generate(img)
noise_vector = input_args['noise_vector']
return model.generate(noise_vector)

# The runway.run() function triggers a call to the function wrapped by
# @runway.setup() passing model_options as its single argument. It also