Skip to content

Commit 1885f12

Browse files
committed
Use official E2B Desktop SDK
1 parent b5268c3 commit 1885f12

File tree

4 files changed

+156
-460
lines changed

4 files changed

+156
-460
lines changed

main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async def start(user_input=None, output_dir=None):
2121
client = None
2222

2323
try:
24-
sandbox = Sandbox(template="desktop-dev-v2")
24+
sandbox = Sandbox()
2525

2626
# The display server won't work on desktop-dev-v2 since ffmpeg is not installed
2727
#client = DisplayClient(output_dir)
@@ -34,8 +34,8 @@ async def start(user_input=None, output_dir=None):
3434
agent = SandboxAgent(sandbox, output_dir)
3535

3636
print("Starting the VNC server...")
37-
sandbox.vnc_server.start()
38-
vnc_url = sandbox.vnc_server.get_url()
37+
sandbox.stream.start()
38+
vnc_url = sandbox.stream.get_url()
3939

4040
print("Starting the VNC client...")
4141
browser = Browser()

os_computer_use/sandbox.py

Lines changed: 0 additions & 361 deletions
This file was deleted.

os_computer_use/streaming.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from os_computer_use.sandbox import Sandbox as SandboxBase
1+
from e2b_desktop import Sandbox as SandboxBase
22
import asyncio
33
import os
44
import signal

0 commit comments

Comments
 (0)