zeroshot commited on
Commit
41cb2c0
·
1 Parent(s): 2680798

edit handler

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -18,10 +18,10 @@ class EndpointHandler:
18
  start = perf_counter()
19
  prediction = self.pipeline(inputs)
20
  end = perf_counter()
21
- delta = end - start
22
 
23
  return {
24
  "labels": prediction.labels,
25
  "scores": prediction.scores,
26
- "latency (secs.)": str(delta)
27
  }
 
18
  start = perf_counter()
19
  prediction = self.pipeline(inputs)
20
  end = perf_counter()
21
+ latency = end - start
22
 
23
  return {
24
  "labels": prediction.labels,
25
  "scores": prediction.scores,
26
+ "latency (secs.)": latency
27
  }