import sys from pathlib import Path sys.path.append(str(Path(__file__).resolve().parent.parent)) from image_query import query_claude, resolve_output_path image = "Test_pic.jpg" # looked up in pics/ prompt = "What colors dominate this image?" output = "demo_colors.txt" # saved to output/ result = query_claude(image, prompt) resolved_output = resolve_output_path(output) with open(resolved_output, "w", encoding="utf-8") as f: f.write(result) print(result) print(f"\nSaved to {resolved_output}")