Skip to content

Commit

Permalink
Fix the conditional (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
yafshar authored Sep 26, 2024
1 parent 4baaf3d commit a4dbcff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/image-to-text/run_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def main():
args.image_path = [
"https://github.com/haotian-liu/LLaVA/blob/1a91fc274d7c35a9b50b3cb29c4247ae5837ce39/images/llava_v1_5_radar.jpg?raw=true"
]
if args.prompt is None:
if args.prompt is None and model_type in ("llava", "llava_next"):
if model_type == "llava":
processor = LlavaProcessor.from_pretrained(args.model_name_or_path)
elif model_type == "llava_next":
Expand Down

0 comments on commit a4dbcff

Please sign in to comment.