mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-20 07:04:20 +01:00
refactor: cleanup
This commit is contained in:
2
main.py
2
main.py
@@ -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
|
||||
'''
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user