knox 已修改 . 還原成這個修訂版本
1 file changed, 7 insertions
Jina-4.py(檔案已創建)
@@ -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]) |
上一頁
下一頁