You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
response: The image shows a close-up of a person's hands playing a guitar. The hands are positioned on the neck of the guitar, with the fingers pressing down on the strings to produce music. The guitar has a wooden body and a glossy finish, and the strings are clearly visible. The background is blurred, but it appears to be an indoor setting with warm lighting. The focus of the image is on the hands and the guitar, with the background serving to highlight the subject. There are no visible texts or distinctive brands in the image. The style of the image is a realistic photograph with a shallow depth of field, which is a common technique in portrait photography to draw attention to the subject.
195
+
response: In the image, a kitten with striking blue eyes is the main subject. The kitten, with its fur in shades of gray and white, is sitting on a white surface. Its head is slightly tilted to the left, giving it a curious and endearing expression. The kitten's eyes are wide open, and its mouth is slightly open, as if it's in the middle of a meow or perhaps just finished one. The background is blurred, drawing focus to the kitten, but it appears to be a room with a window, suggesting an indoor setting. The overall image gives a sense of warmth and cuteness.
tasks = [inference_client_async(model_type, query, request_config=request_config) for _ in range(5)]
239
+
async def _batch_run(tasks):
240
+
return await asyncio.gather(*tasks)
241
+
242
+
resp_list = asyncio.run(_batch_run(tasks))
243
+
resp = resp_list[0]
239
244
response = resp.choices[0].message.content
240
245
print(f'query: {query}')
241
246
print(f'response: {response}')
@@ -256,9 +261,9 @@ asyncio.run(_stream())
256
261
"""Out[0]
257
262
model_type: qwen-7b-chat
258
263
query: Where is the capital of Zhejiang?
259
-
response: The capital of Zhejiang Province is Hangzhou.
264
+
response: The capital of Zhejiang is Hangzhou.
260
265
query: What delicious food is there?
261
-
response: Hangzhou has many delicious foods, such as West Lake Vinegar Fish, Dongpo Pork, Longjing Shrimp, Beggar's Chicken, etc. In addition, Hangzhou also has many specialty snacks, such as West Lake Lotus Root Powder, Hangzhou Xiao Long Bao, Hangzhou You Tiao, etc.
266
+
response: Hangzhou is famous for its delicious food, such as West Lake Fish in Vinegar Gravy, Dongpo Pork, and Longjing Tea.
0 commit comments