Removed sentence-transformers and fixed SyntaxError in handler.py
Browse files- handler.py +3 -3
- requirements.txt +0 -1
handler.py
CHANGED
|
@@ -75,9 +75,9 @@ if __name__ == '__main__':
|
|
| 75 |
# Create a dummy request body
|
| 76 |
dummy_request_body = json.dumps({"image": encoded_image, "boxes": example_boxes})
|
| 77 |
|
| 78 |
-
print(
|
| 79 |
-
--- Testing InferenceHandler locally ---
|
| 80 |
inputs, original_size = handler.preprocess(dummy_request_body)
|
| 81 |
outputs = handler.inference(inputs)
|
| 82 |
processed_response = handler.postprocess(outputs, original_size)
|
| 83 |
-
print(
|
|
|
|
| 75 |
# Create a dummy request body
|
| 76 |
dummy_request_body = json.dumps({"image": encoded_image, "boxes": example_boxes})
|
| 77 |
|
| 78 |
+
print('
|
| 79 |
+
--- Testing InferenceHandler locally ---')
|
| 80 |
inputs, original_size = handler.preprocess(dummy_request_body)
|
| 81 |
outputs = handler.inference(inputs)
|
| 82 |
processed_response = handler.postprocess(outputs, original_size)
|
| 83 |
+
print('Local test successful. Response structure (truncated):', processed_response[:200], '...')
|
requirements.txt
CHANGED
|
@@ -6,4 +6,3 @@ nibabel==5.3.2
|
|
| 6 |
numpy==2.0.2
|
| 7 |
Pillow==10.3.0
|
| 8 |
tqdm==4.67.1
|
| 9 |
-
sentence-transformers==2.5.0
|
|
|
|
| 6 |
numpy==2.0.2
|
| 7 |
Pillow==10.3.0
|
| 8 |
tqdm==4.67.1
|
|
|