Update handler.py
Browse files- 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 |
|