Skip to content

Commit

Permalink
Update process creation in benchmark script
Browse files Browse the repository at this point in the history
  • Loading branch information
waynehamadi authored and p-i- committed Apr 16, 2023
1 parent b5e0127 commit 3b80253
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benchmark/benchmark_entrepeneur_gpt_with_difficult_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ def benchmark_entrepeneur_gpt_with_difficult_user():
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())

Expand Down

0 comments on commit 3b80253

Please sign in to comment.