Skip to content

Commit 514e73f

Browse files
committed
Cleanup list models examples.
1 parent bb562b6 commit 514e73f

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

javascript/README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,16 @@ import Bytez from "bytez.js";
108108

109109
const 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

113114
console.log(models);
115+
116+
// to list models by task
117+
118+
const modelsByTask = await client.list.models.byTask("object-detection");
119+
120+
console.log(modelsByTask);
114121
```
115122

116123
## Initialize the Model API

julia/Bytez/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ from bytez import Bytez
139139

140140
client = Bytez("YOUR_BYTEZ_KEY_HERE")
141141

142+
# To list all models
142143
model_list = client.list_models()
143144

144145
println(model_list)

python/README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,15 @@ from bytez import Bytez
126126

127127
client = 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

0 commit comments

Comments
 (0)