File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ export const allennlp = (model: ModelData): string[] => {
4646 return allennlpUnknown ( model ) ;
4747} ;
4848
49+ export const araclip = ( model : ModelData ) : string [ ] => [
50+ `from araclip import AraClip
51+
52+ model = AraClip.from_pretrained("${ model . id } ")` ,
53+ ] ;
54+
4955export const asteroid = ( model : ModelData ) : string [ ] => [
5056 `from asteroid.models import BaseModel
5157
Original file line number Diff line number Diff line change @@ -84,6 +84,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
8484 countDownloads : `path_extension:"ckpt"` ,
8585 snippets : snippets . anemoi ,
8686 } ,
87+ araclip : {
88+ prettyLabel : "AraClip" ,
89+ repoName : "AraClip" ,
90+ repoUrl : "https://huggingface.co/Arabic-Clip/araclip" ,
91+ filter : false ,
92+ snippets : snippets . araclip ,
93+ } ,
8794 asteroid : {
8895 prettyLabel : "Asteroid" ,
8996 repoName : "Asteroid" ,
You can’t perform that action at this time.
0 commit comments