File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,15 @@ import Bytez from "bytez.js";
108108
109109const client = new Bytez (" YOUR_API_KEY" );
110110
111- const models = await client .list .models ();
111+ // lists all models
112+ const models = await client .list .models .all ();
112113
113114console .log (models);
115+
116+ // to list models by task
117+ const modelsByTask = await client .list .models .byTask (" object-detection" );
118+
119+ console .log (modelsByTask);
114120```
115121
116122## Initialize the Model API
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ from bytez import Bytez
139139
140140client = Bytez (" YOUR_BYTEZ_KEY_HERE" )
141141
142+ # To list all models
142143model_list = client. list_models ()
143144
144145println (model_list)
Original file line number Diff line number Diff line change @@ -126,9 +126,15 @@ from bytez import Bytez
126126
127127client = Bytez(" YOUR_BYTEZ_KEY_HERE" )
128128
129- model_list = client.list_models()
129+ # To list all models
130+ models = client.list_models()
130131
131- print (model_list)
132+ println(models)
133+
134+ # To list models by task
135+ models_by_task = client.list_models(" object-detection" )
136+
137+ println(models_by_task)
132138```
133139
134140## Initialize the Model API
You can’t perform that action at this time.
0 commit comments