Skip to content

Commit

Permalink
fix: small issue with verbose variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mjspeck committed Feb 7, 2024
1 parent e401b33 commit 0f46a04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions operate/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
)

config = Config()
VERBOSE = config.verbose


def main(model: str, terminal_prompt: str, voice_mode: bool = False):
Expand Down
6 changes: 3 additions & 3 deletions operate/operate.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@


def operate(operations, verbose: bool = VERBOSE):
if VERBOSE:
if verbose:
print("[Self Operating Computer][operate]")
for operation in operations:
if VERBOSE:
if verbose:
print("[Self Operating Computer][operate] operation", operation)
# wait one second
time.sleep(1)
operate_type = operation.get("operation").lower()
operate_thought = operation.get("thought")
operate_detail = ""
if VERBOSE:
if verbose:
print("[Self Operating Computer][operate] operate_type", operate_type)

if operate_type == "press" or operate_type == "hotkey":
Expand Down

0 comments on commit 0f46a04

Please sign in to comment.