Skip to content

Commit

Permalink
add VERBOSITY env var
Browse files Browse the repository at this point in the history
  • Loading branch information
yzld2002 committed Oct 10, 2024
1 parent 1e786ff commit 7f4fc3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vision_agent/tools/meta_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
CURRENT_LINE = 0
DEFAULT_WINDOW_SIZE = 100
ZMQ_PORT = os.environ.get("ZMQ_PORT", None)
VERBOSITY = os.environ.get("VERBOSITY", 0)


def report_progress_callback(port: int, inp: Dict[str, Any]) -> None:
Expand Down Expand Up @@ -375,7 +376,7 @@ def detect_dogs(image_path: str):
)
)
else:
agent = va.agent.VisionAgentCoder()
agent = va.agent.VisionAgentCoder(verbosity=int(VERBOSITY))

fixed_chat: List[Message] = [{"role": "user", "content": chat, "media": media}]
response = agent.chat_with_workflow(
Expand Down Expand Up @@ -438,7 +439,7 @@ def detect_dogs(image_path: str):
return dogs
"""

agent = va.agent.VisionAgentCoder()
agent = va.agent.VisionAgentCoder(verbosity=int(VERBOSITY))
if name not in artifacts:
print(f"[Artifact {name} does not exist]")
return f"[Artifact {name} does not exist]"
Expand Down

0 comments on commit 7f4fc3b

Please sign in to comment.