Add one-click download and setup script for OSWorld virtual machine; Make up show_result.py

This commit is contained in:
Timothyxxx
2024-04-10 21:25:28 +08:00
parent 62fd0094b9
commit cd1ebd44ec
3 changed files with 152 additions and 14 deletions

View File

@@ -39,21 +39,9 @@ vmrun -T ws list
```
If the installation along with the environment variable set is successful, you will see the message showing the current running virtual machines.
3. Obtain the virtual machine image. If you are using Linux or Windows with an x86_64 CPU, install the environment package and download the examples and the virtual machine image by executing the following commands:
Remove the `nogui` parameter if you wish to view the activities within the virtual machine.
3. Run our setup script to download the necessary virtual machines and set up the environment☕:
```bash
wget https://huggingface.co/datasets/xlangai/ubuntu_x86/resolve/main/Ubuntu.zip
unzip Ubuntu.zip
vmrun -T ws start "Ubuntu/Ubuntu.vmx" nogui
vmrun -T ws snapshot "Ubuntu/Ubuntu.vmx" "init_state"
```
For macOS with Apple chips, you should install the specially prepared virtual machine image by executing the following commands:
```bash
wget https://huggingface.co/datasets/xlangai/ubuntu_arm/resolve/main/Ubuntu.zip
unzip Ubuntu.zip
vmrun -T fusion start "Ubuntu/Ubuntu.vmx" nogui
vmrun -T fusion snapshot "Ubuntu/Ubuntu.vmx" "init_state"
python setup_vm.py
```
### On AWS or Azure (Virtualized platform)