From fe19d7e10453d10a645e7eb3ff895bdb11761c2d Mon Sep 17 00:00:00 2001 From: Zaur Magamednebiev <42669535+imzaur@users.noreply.github.com> Date: Tue, 23 Apr 2024 06:12:14 +0300 Subject: [PATCH 1/3] fixed readme (#26) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4ffb97a..5489bd2 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,12 @@ You will see all the logs of the system running normally, including the successf ## 🧪 Experiments ### Agent Baselines If you wish to run the baseline agent used in our paper, you can execute the following command as an example under the GPT-4V pure-screenshot setting: + +Set **OPENAI_API_KEY** environment variable with your API key +```bash +export OPENAI_API_KEY='changme' +``` + ```bash python run.py --path_to_vm Ubuntu/Ubuntu.vmx --headless --observation_type screenshot --model gpt-4-vision-preview --result_dir ./results ``` From c4bd76b78e9bedd2cf7e266f09130d4e92812e75 Mon Sep 17 00:00:00 2001 From: Tianbao Xie <47296835+Timothyxxx@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:30:31 +0800 Subject: [PATCH 2/3] Update ROADMAP.md --- ROADMAP.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ROADMAP.md b/ROADMAP.md index a4e4c7e..5b152b2 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -24,6 +24,7 @@ If you are interested in contributing to the project, please check the [CONTRIBU - [ ] VPN setup doc for those who need it - [ ] Support running on platforms that have nested virtualization, e.g. Google Cloud, AWS, etc. - [ ] Prepare for the first release of Windows vm image for the environment +- [ ] Be able to run without virtual machine platform VMware ## Road Map of Annotation Tool From b3acf213331af23b84ce3203a8fa3d0c9d13f394 Mon Sep 17 00:00:00 2001 From: Timothyxxx <384084775@qq.com> Date: Tue, 23 Apr 2024 14:04:59 +0800 Subject: [PATCH 3/3] Fix https://github.com/xlang-ai/OSWorld/issues/27 --- desktop_env/envs/__init__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/desktop_env/envs/__init__.py b/desktop_env/envs/__init__.py index 3f54d12..3dd509c 100644 --- a/desktop_env/envs/__init__.py +++ b/desktop_env/envs/__init__.py @@ -189,9 +189,12 @@ def _install_virtual_machine(vm_name, working_dir="./vm_data", downloaded_file_n os.makedirs(working_dir, exist_ok=True) def __download_and_unzip_vm(): # Determine the platform and CPU architecture to decide the correct VM image to download - if platform.machine() == 'arm64': # macOS with Apple Silicon - url = UBUNTU_ARM_URL - elif platform.machine().lower() in ['amd64', "x86_64"]: + if platform.system() == 'Darwin': # macOS + if os.uname().machine == 'arm64': # Apple Silicon + url = UBUNTU_ARM_URL + else: + url = UBUNTU_X86_URL + elif platform.machine().lower() in ['amd64', 'x86_64']: url = UBUNTU_X86_URL else: raise Exception("Unsupported platform or architecture")