Skip to content

Commit 5dc5ee5

Browse files
[fix] fixed title, and intro.md examples on modelset and scriptset (#364)
1 parent 484981f commit 5dc5ee5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/intro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,13 @@ redis-cli doesn't provide a way to read files' contents, so to load the model wi
207207

208208
```
209209
cat graph.pb | docker exec -i redisai redis-cli -x \
210-
AI.MODELSET mymodel TF CPU INPUTS a b OUTPUTS c
210+
AI.MODELSET mymodel TF CPU INPUTS a b OUTPUTS c BLOB
211211
```
212212

213213
??? example "Example: loading a model from command line"
214214
```
215215
$ cat graph.pb | docker exec -i redisai redis-cli -x \
216-
AI.MODELSET mymodel TF CPU INPUTS a b OUTPUTS c
216+
AI.MODELSET mymodel TF CPU INPUTS a b OUTPUTS c BLOB
217217
OK
218218
```
219219

@@ -313,7 +313,7 @@ def multiply(a, b):
313313
Assuming that the script is stored in the 'myscript.py' file it can be uploaded via command line and the `AI.SCRIPTSET` command as follows:
314314

315315
```
316-
cat myscript.py | docker exec -i redisai redis-cli -x AI.SCRIPTSET myscript CPU
316+
cat myscript.py | docker exec -i redisai redis-cli -x AI.SCRIPTSET myscript CPU SOURCE
317317
```
318318

319319
This will store the PyTorch Script from 'myscript.py' under the 'myscript' key and will associate it with the CPU device for execution. Once loaded, the script can be run with the following:

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
site_name: RedisAI - A Server for Maching and Deep Learning Models
1+
site_name: RedisAI - A Server for Machine and Deep Learning Models
22
site_url: http://redisai.io
33
repo_url: https://github.com/RedisAI/RedisAI
44
repo_name: RedisAI/RedisAI

0 commit comments

Comments
 (0)