zeroshot commited on
Commit
ed21eff
·
1 Parent(s): cc1fa30

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -44,12 +44,12 @@ class EndpointHandler:
44
  start = perf_counter()
45
  prediction = self.pipeline(inputs)
46
  end = perf_counter()
47
- delta = end - start
48
 
49
  return {
50
  "labels": prediction.labels,
51
  "scores": prediction.scores,
52
- "latency (secs.)": str(delta)
53
  }
54
  ```
55
 
 
44
  start = perf_counter()
45
  prediction = self.pipeline(inputs)
46
  end = perf_counter()
47
+ latency = end - start
48
 
49
  return {
50
  "labels": prediction.labels,
51
  "scores": prediction.scores,
52
+ "latency (secs.)": latency
53
  }
54
  ```
55