Enable Windows VM in Docker
This commit is contained in:
@@ -27,7 +27,7 @@ MAX_RETRY_TIMES = 10
|
||||
RETRY_INTERVAL = 5
|
||||
|
||||
UBUNTU_X86_URL = "https://huggingface.co/datasets/xlangai/ubuntu_osworld/resolve/main/Ubuntu.qcow2"
|
||||
WINDOWS_X86_URL = r"https://huggingface.co/datasets/xlangai/windows_osworld/resolve/main/Windows%2010%20x64%20-%20copy.qcow2"
|
||||
WINDOWS_X86_URL = r"https://huggingface.co/datasets/xlangai/windows_osworld/resolve/main/Windows-10-x64.qcow2"
|
||||
VMS_DIR = "./docker_vm_data"
|
||||
|
||||
# Determine the platform and CPU architecture to decide the correct VM image to download
|
||||
@@ -120,7 +120,7 @@ class DockerVMManager(VMManager):
|
||||
def get_vm_path(self, os_type, region):
|
||||
global URL, DOWNLOADED_FILE_NAME
|
||||
if os_type == "Ubuntu":
|
||||
URL = WINDOWS_X86_URL
|
||||
URL = UBUNTU_X86_URL
|
||||
elif os_type == "Windows":
|
||||
URL = WINDOWS_X86_URL
|
||||
DOWNLOADED_FILE_NAME = URL.split('/')[-1]
|
||||
|
||||
Reference in New Issue
Block a user