Last active 1731289443

knox revised this gist 1731289442. Go to revision

1 file changed, 7 insertions

Jina-4.py(file created)

@@ -0,0 +1,7 @@
1 + from jina import Client
2 + from docarray import DocList
3 + from executor import Prompt, Generation
4 +
5 + prompt = Prompt(text='suggest an interesting image generation prompt')
6 + client = Client(port=12345)
7 + response = client.post('/', inputs=[prompt], return_type=DocList[Generation])
Newer Older