File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -813,6 +813,14 @@ export const keras_hub = (model: ModelData): string[] => {
813813 return snippets ;
814814} ;
815815
816+ export const kernels = ( model : ModelData ) : string [ ] => [
817+ `# !pip install kernels
818+
819+ from kernels import get_kernel
820+
821+ kernel = get_kernel("${ model . id } ")` ,
822+ ] ;
823+
816824export const kimi_audio = ( model : ModelData ) : string [ ] => [
817825 `# Example usage for KimiAudio
818826# pip install git+https://github.com/MoonshotAI/Kimi-Audio.git
Original file line number Diff line number Diff line change @@ -563,6 +563,14 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
563563 snippets : snippets . keras_hub ,
564564 filter : true ,
565565 } ,
566+ kernels : {
567+ prettyLabel : "Kernels" ,
568+ repoName : "Kernels" ,
569+ repoUrl : "https://github.com/huggingface/kernels" ,
570+ docsUrl : "https://huggingface.co/docs/kernels" ,
571+ snippets : snippets . kernels ,
572+ countDownloads : `path_filename:"_ops" AND path_extension:"py"` ,
573+ } ,
566574 "kimi-audio" : {
567575 prettyLabel : "KimiAudio" ,
568576 repoName : "KimiAudio" ,
You can’t perform that action at this time.
0 commit comments