Skip to content

Commit

Permalink
sourcery updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LemurPwned committed Jun 6, 2024
1 parent 76066f5 commit cc5c7e0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions video_sampler/integrations/llava_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ def summarise_image(self, image: Image) -> str:
return res["choices"][0]["text"].strip()
elif "content" in res:
return res["content"].strip()
raise ValueError(
f"Failed to summarise image: unknown response format: {res}"
)
)
raise ValueError(f"Failed to summarise image: unknown response format: {res}")


class ImageDescriptionOpenAI(ImageDescription):
Expand Down

0 comments on commit cc5c7e0

Please sign in to comment.