Skip to content

Commit

Permalink
Don't crash when --image argument is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Jan 9, 2024
1 parent 64d1e65 commit c617679
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llama.cpp/llava/llava-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ int llava_cli(int argc, char ** argv) {
sigaction(SIGINT, &sa, NULL);

auto image_embed = load_image(ctx_llava, &params);
if (!image_embed) {
exit(1);
}

// process the prompt
process_prompt(ctx_llava, image_embed, &params, params.prompt);
Expand Down

0 comments on commit c617679

Please sign in to comment.