From 72fcae579fc12361dfc9b0dcfa192da645e1b6ac Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Fri, 14 Apr 2023 12:09:30 +0200 Subject: [PATCH] fix: pg gets results on text --- src/executor_factory.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/executor_factory.py b/src/executor_factory.py index 8e6a801..fde0d51 100644 --- a/src/executor_factory.py +++ b/src/executor_factory.py @@ -163,10 +163,13 @@ The playground must look like it was made by a professional designer. All the ui elements are well thought out to make them visually appealing and easy to use. 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('/', 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 +``` +Note that the response will always be in response[0].text Please provide the complete file with the exact same syntax to wrap the code. ''' )