Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import webbrowser
from os_computer_use.streaming import Sandbox, DisplayClient
from os_computer_use.browser import Browser
from os_computer_use.sandbox_agent import SandboxAgent
from os_computer_use.logging import Logger
import asyncio
Expand Down Expand Up @@ -39,8 +39,7 @@ async def start(user_input=None, output_dir=None):
vnc_url = sandbox.stream.get_url()

print("Starting the VNC client...")
browser = Browser()
browser.open(vnc_url)
webbrowser.open(vnc_url)

while True:
# Ask for user input, and exit if the user presses ctl-c
Expand Down Expand Up @@ -82,12 +81,6 @@ async def start(user_input=None, output_dir=None):
# except Exception as e:
# print(f"Error saving stream: {str(e)}")

print("Stopping the VNC client...")
try:
browser.close()
except Exception as e:
print(f"Error stopping VNC client: {str(e)}")


def initialize_output_directory(directory_format):
run_id = 1
Expand Down
77 changes: 0 additions & 77 deletions os_computer_use/browser.py

This file was deleted.