English
ByteEdAdmin commited on
Commit
6476e0c
·
verified ·
1 Parent(s): fa524b1

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -1
handler.py CHANGED
@@ -63,7 +63,8 @@ class EndpointHandler():
63
  self.sdf_model.load_state_dict(load_checkpoint(self.sdf_name, device))
64
 
65
  def __call__(self, input_data: Any) -> Any:
66
-
 
67
  # Check if input_data is a string and deserialize if necessary
68
  if isinstance(input_data, str):
69
  print("input_data is a string, attempting to deserialize...")
 
63
  self.sdf_model.load_state_dict(load_checkpoint(self.sdf_name, device))
64
 
65
  def __call__(self, input_data: Any) -> Any:
66
+ print(f"input_data before processing: {input_data}, type: {type(input_data)}") # Debugging print
67
+
68
  # Check if input_data is a string and deserialize if necessary
69
  if isinstance(input_data, str):
70
  print("input_data is a string, attempting to deserialize...")