Skip to content

Commit

Permalink
πŸ“ Update image file path
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Nov 10, 2023
1 parent a6afc12 commit 54c37e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)

Expand Down

0 comments on commit 54c37e3

Please sign in to comment.