mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[benchmark] Update benchmark_serving.py (#6467)
This commit is contained in:
@@ -389,14 +389,12 @@ async def benchmark(
|
||||
|
||||
test_output = await request_func(request_func_input=test_input)
|
||||
|
||||
if args.debug:
|
||||
print("test_output:", test_output, flush=True)
|
||||
|
||||
if args.multi_turn:
|
||||
out_list, metrics = test_output
|
||||
test_output = out_list[0]
|
||||
|
||||
if not test_output.success:
|
||||
print("test_output:", test_output, flush=True)
|
||||
raise ValueError(
|
||||
f"Initial test run failed - Please make sure that 1. benchmark arguments are correctly specified and 2. the http_proxy and https_proxy are turned off. Error: {test_output.error}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user