Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

move comment to correct position

roby.parapat8cbe438ad5c2
diff --git a/autogpt/commands/execute_code.py b/autogpt/commands/execute_code.py
index 86d6c177b7..f174b7bca1 100644
--- a/autogpt/commands/execute_code.py
+++ b/autogpt/commands/execute_code.py
@@ -41,6 +41,9 @@ def execute_python_file(file: str):
try:
client = docker.from_env()
+ # You can replace 'python:3.8' with the desired Python image/version
+ # You can find available Python images on Docker Hub:
+ # https://hub.docker.com/_/python
image_name = "python:3.10"
try:
client.images.get(image_name)
@@ -58,9 +61,6 @@ def execute_python_file(file: str):
elif status:
print(status)
- # You can replace 'python:3.8' with the desired Python image/version
- # You can find available Python images on Docker Hub:
- # https://hub.docker.com/_/python
container = client.containers.run(
image_name,
f"python {file}",