Update handler.py
Browse files- 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...")
|