| 151 | } |
| 152 | |
| 153 | bool load_media(const std::string & fname) { |
| 154 | mtmd::bitmap bmp(mtmd_helper_bitmap_init_from_file(ctx_vision.get(), fname.c_str())); |
| 155 | if (!bmp.ptr) { |
| 156 | return false; |
| 157 | } |
| 158 | bitmaps.entries.push_back(std::move(bmp)); |
| 159 | return true; |
| 160 | } |
| 161 | }; |
| 162 | |
| 163 | static int generate_response(mtmd_cli_context & ctx, int n_predict) { |
no test coverage detected