refactor: cleanup

This commit is contained in:
Florian Hönicke
2023-04-07 00:53:52 +02:00
parent a8e177b1de
commit 4993f9fc97
2 changed files with 11 additions and 5 deletions

View File

@@ -155,7 +155,7 @@ The executor is hosted on {host}.
This is an example how you can connect to the executor assuming the document (d) is already defined:
from jina import Client, Document, DocumentArray
client = Client(host='{host}')
response = client.post('/process', inputs=DocumentArray([d]))
response = client.post('/', inputs=DocumentArray([d])) # always use '/'
print(response[0].text) # can also be blob in case of image/audio..., this should be visualized in the streamlit app
'''
)