mirror of
https://github.com/trycua/computer.git
synced 2026-05-08 08:09:43 -05:00
Added winsandbox to gradio UI
This commit is contained in:
@@ -574,6 +574,12 @@ async def handle_init_computer(os_choice: str, app_list=None, provider="lume", c
|
|||||||
api_key=cloud_api_key,
|
api_key=cloud_api_key,
|
||||||
experiments=experiments
|
experiments=experiments
|
||||||
)
|
)
|
||||||
|
elif provider == "winsandbox":
|
||||||
|
computer = Computer(
|
||||||
|
os_type="windows",
|
||||||
|
provider_type=VMProviderType.WINSANDBOX,
|
||||||
|
experiments=experiments
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
computer = Computer(
|
computer = Computer(
|
||||||
image=image_str,
|
image=image_str,
|
||||||
@@ -1091,7 +1097,7 @@ def create_gradio_ui():
|
|||||||
# Provider selection radio
|
# Provider selection radio
|
||||||
provider_choice = gr.Radio(
|
provider_choice = gr.Radio(
|
||||||
label="Provider",
|
label="Provider",
|
||||||
choices=["lume", "self", "cloud"],
|
choices=["lume", "self", "cloud", "winsandbox"],
|
||||||
value="lume",
|
value="lume",
|
||||||
info="'lume' uses a VM, 'self' uses the host computer server, 'cloud' uses a cloud container"
|
info="'lume' uses a VM, 'self' uses the host computer server, 'cloud' uses a cloud container"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user