Update examples/llava/llava-cli.cpp

also need to update function body and call

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
cpumaxx 2024-04-28 15:29:45 -07:00 committed by GitHub
parent 8c0a5b0e1e
commit e441cc8992
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,7 +116,7 @@ static void show_additional_info(int /*argc*/, char ** argv) {
fprintf(stderr, " note: a lower temperature value like 0.1 is recommended for better quality.\n");
}
static struct llava_image_embed * load_image(llava_context * ctx_llava, gpt_params * params, std::string * image) {
static struct llava_image_embed * load_image(llava_context * ctx_llava, gpt_params * params, const std::string & fname) {
// load and preprocess the image
llava_image_embed * embed = NULL;