Skip to content

Commit 0f46a04

Browse files
committed
fix: small issue with verbose variable
1 parent e401b33 commit 0f46a04

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

operate/main.py

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
)
2525

2626
config = Config()
27+
VERBOSE = config.verbose
2728

2829

2930
def main(model: str, terminal_prompt: str, voice_mode: bool = False):

operate/operate.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818

1919

2020
def operate(operations, verbose: bool = VERBOSE):
21-
if VERBOSE:
21+
if verbose:
2222
print("[Self Operating Computer][operate]")
2323
for operation in operations:
24-
if VERBOSE:
24+
if verbose:
2525
print("[Self Operating Computer][operate] operation", operation)
2626
# wait one second
2727
time.sleep(1)
2828
operate_type = operation.get("operation").lower()
2929
operate_thought = operation.get("thought")
3030
operate_detail = ""
31-
if VERBOSE:
31+
if verbose:
3232
print("[Self Operating Computer][operate] operate_type", operate_type)
3333

3434
if operate_type == "press" or operate_type == "hotkey":

0 commit comments

Comments
 (0)