Naposledy aktivní 1731289443

Revize a2a33a8063feff53b8553cec1e9efce0cfb5b011

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