Skip to content

Commit 6adea91

Browse files
committed
Remove overriding file_path that was breaking summary
1 parent 6de177a commit 6adea91

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

operate/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def summarize(messages, objective):
568568
return content
569569

570570
except Exception as e:
571-
print(f"Error parsing JSON: {e}")
571+
print(f"Error in summarize: {e}")
572572
return "Failed to summarize the workflow"
573573

574574

@@ -760,8 +760,7 @@ def capture_mini_screenshot_with_cursor(
760760
)
761761

762762

763-
def capture_screen_with_cursor(file_path=os.path.join("screenshots", "screenshot.png")):
764-
file_path = os.path.join("screenshots", "screenshot.png")
763+
def capture_screen_with_cursor(file_path):
765764
user_platform = platform.system()
766765

767766
if user_platform == "Windows":

0 commit comments

Comments
 (0)