From 54c37e3f7d03191286ae476268134a36b6036813 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Fri, 10 Nov 2023 14:01:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=81=20Update=20image=20file=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/vision.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/vision.py b/examples/vision.py index 5a3d2ad..8609133 100644 --- a/examples/vision.py +++ b/examples/vision.py @@ -3,7 +3,6 @@ from PIL import Image # type: ignore settings.MODEL_NAME = "gpt-4-vision-preview" -settings.MODEL_TEMPERATURE = 0.9 class AnalysisResult(BaseModel): @@ -22,7 +21,7 @@ def analyse_image(image: Image.Image) -> AnalysisResult: if __name__ == "__main__": - example_image = Image.open("examples/cyberspace_landscape.jpg") + example_image = Image.open("examples/assets/cyberspace_landscape.jpg") result = analyse_image(example_image)