Skip to content

Commit e3372c6

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

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

javascript/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,15 @@ 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+
const modelsByTask = await client.list.models.byTask("object-detection");
118+
119+
console.log(modelsByTask);
114120
```
115121

116122
## Initialize the Model API

julia/Bytez/README.md

Lines changed: 1 addition & 0 deletions
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

Lines changed: 8 additions & 2 deletions
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)