Skip to content

Commit

Permalink
Resolve key error in retrieval profiling data parser
Browse files Browse the repository at this point in the history
  • Loading branch information
djwhatle committed Nov 13, 2024
1 parent e4e9757 commit 7720ecd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def _parse_requests(self, requests: dict) -> ImageRetrievalMetrics:
req_latency_ns = res_timestamps[-1] - req_timestamp
request_latencies.append(req_latency_ns)

contents = load_json_str(req_inputs["input"])
payload = load_json_str(req_inputs["payload"])
contents = payload["input"]
num_images = len([c for c in contents if c["type"] == "image_url"])

# image throughput
Expand Down

0 comments on commit 7720ecd

Please sign in to comment.