Team Ai
Modelpublic

Felipe97/llama-cpp-compiled

sourceHugging Faceupdated 18d agoView on Hugging Face
0likes1.2kdownloads
ui.cpp.in37 linesDownload Raw Back to ui
1// Generated by scripts/ui-assets.cmake - do not edit.2 3#include "ui.h"4 5@ASSET_ARRAYS@6#if defined(LLAMA_UI_HAS_ASSETS)7static const std::array<llama_ui_asset, @N_ASSETS@> g_assets = {{8@ASSET_TABLE@9}};10#endif11 12const llama_ui_asset * llama_ui_find_asset(const std::string & name) {13#if defined(LLAMA_UI_HAS_ASSETS)14    for (const auto & a : g_assets) {15        if (a.name == name) {16            return &a;17        }18    }19#else20    (void) name;21#endif22    return nullptr;23}24 25const std::array<llama_ui_asset, @N_ASSETS@> & llama_ui_get_assets() {26#if defined(LLAMA_UI_HAS_ASSETS)27    return g_assets;28#else29    static const std::array<llama_ui_asset, 0> empty{};30    return empty;31#endif32}33 34bool llama_ui_use_gzip() {35    return @USE_GZIP@;36}37