Linsad commited on
Commit
7b13088
1 Parent(s): 54248b6

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, 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.split(' '), capture_output=True, text=True)
24
  return [{'response': str(result)}]
25
  # inputs = data.pop("inputs", data)
26