zjpiazza commited on
Commit
e601cc1
·
1 Parent(s): 00d2af5

Added healthcheck to handler

Browse files
Files changed (1) hide show
  1. handler.py +4 -0
handler.py CHANGED
@@ -39,7 +39,11 @@ class EndpointHandler:
39
  A dictionary with prediction results and fighter images.
40
  """
41
  inputs = data.get("inputs", {})
 
42
  random_matchup = inputs.get("random_matchup")
 
 
 
43
 
44
  if not random_matchup:
45
  fighter1_name = inputs.get("fighter1")
 
39
  A dictionary with prediction results and fighter images.
40
  """
41
  inputs = data.get("inputs", {})
42
+ ping = inputs.get("ping")
43
  random_matchup = inputs.get("random_matchup")
44
+
45
+ if ping:
46
+ return {"pong": True}
47
 
48
  if not random_matchup:
49
  fighter1_name = inputs.get("fighter1")