Removed large print statements to keep log size down.
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -63,7 +63,6 @@ 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 |
-
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):
|
@@ -209,7 +208,8 @@ class EndpointHandler():
|
|
209 |
# Write the mesh to a PLY file to import into some other program.
|
210 |
with open('mesh.ply', 'wb') as f:
|
211 |
mesh.write_ply(f)
|
212 |
-
print(mesh)
|
|
|
213 |
|
214 |
return mesh
|
215 |
|
|
|
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):
|
|
|
208 |
# Write the mesh to a PLY file to import into some other program.
|
209 |
with open('mesh.ply', 'wb') as f:
|
210 |
mesh.write_ply(f)
|
211 |
+
print('Mesh saved to ply file, returning mesh data...')
|
212 |
+
#print(mesh)
|
213 |
|
214 |
return mesh
|
215 |
|