Skip to content

Commit

Permalink
Fixed screenshot resampling. Testing interpreter --os mode
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Dec 15, 2023
1 parent fed1e00 commit c492887
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion interpreter/core/computer/display/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def screenshot(self, show=True, quadrant=None):
if screenshot_width > 1024:
ratio = 1024.0 / screenshot_width
new_height = int(screenshot_height * ratio)
screenshot = screenshot.resize((1024, new_height), Image.ANTIALIAS)
screenshot = screenshot.resize((1024, new_height))

screenshot.save(temp_file.name)

Expand Down
12 changes: 6 additions & 6 deletions interpreter/terminal_interface/start_terminal_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,12 @@ def start_terminal_interface(interpreter):

# FOR TESTING ONLY
# Install Open Interpreter from GitHub
# for chunk in interpreter.computer.run(
# "shell",
# "pip install git+https://github.com/KillianLucas/open-interpreter.git",
# ):
# if chunk.get("format") != "active_line":
# print(chunk.get("content"))
for chunk in interpreter.computer.run(
"shell",
"pip install git+https://github.com/KillianLucas/open-interpreter.git",
):
if chunk.get("format") != "active_line":
print(chunk.get("content"))

# Give it access to the computer via Python
for _ in interpreter.computer.run(
Expand Down

0 comments on commit c492887

Please sign in to comment.