refactor: docs refactor fixes

This commit is contained in:
Florian Hönicke
2023-04-08 23:31:53 +02:00
parent 56727bad24
commit 10fc0b0d01
8 changed files with 283 additions and 164 deletions

View File

@@ -103,6 +103,7 @@ from jina import Client, Document, DocumentArray
client = Client(host='{FLOW_URL_PLACEHOLDER}')
d = Document(uri='...')
d.load_uri_to_blob()
d.tags['style'] = 'abstract' # tags must be a flat dictionary where keys are strings and values are strings, ints, floats, or bools
response = client.post('/', inputs=DocumentArray([d])) # the client must be called on '/'
print(response[0].text)
```