apr-research commited on
Commit
079f878
·
1 Parent(s): 313ae49

Comply with their REST API schema

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -53,9 +53,9 @@ class EndpointHandler:
53
  :return: output data
54
  """
55
  # get inputs
56
- command = data.pop("command", None)
57
  if not isinstance(command, str):
58
- return {"error": "command attribute is required"}
59
 
60
  # run command
61
  result = self.run_command(command)
 
53
  :return: output data
54
  """
55
  # get inputs
56
+ command = data.pop("inputs", None)
57
  if not isinstance(command, str):
58
+ return {"error": "inputs attribute is required"}
59
 
60
  # run command
61
  result = self.run_command(command)