qwenvl/wwwroot/api/index.dspy

10 lines
193 B
Plaintext
Raw Normal View History

2024-11-12 15:32:14 +08:00
info(f'{params_kw=}')
2024-12-06 14:57:00 +08:00
t1 = time.time()
ret = await inference(params_kw.prompt, params_kw.image, params_kw.video)
t2 = time.time()
info(f'{ret=}')
return {
"content":ret
"time_cost":t2 - t1
}