Update process creation in benchmark script

This commit is contained in:
Merwane Hamadi
2023-04-16 14:16:48 -07:00
committed by Pi
parent b5e0127b16
commit 3b80253fb3

View File

@@ -73,9 +73,12 @@ Disappointing suggestion.
Not helpful.
Needs improvement.
Not what I need.'''
# TODO: add questions above, to distract it even more.
command = f'{sys.executable} -m autogpt'
process = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
process = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
shell=True)
stdout_output, stderr_output = process.communicate(input_data.encode())