Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
|
@@ -93,11 +93,11 @@ class EndpointHandler:
|
|
| 93 |
self.tokenizer,
|
| 94 |
prompt=prompt,
|
| 95 |
image_file=image_path, # Pass the PIL Image object directly
|
| 96 |
-
output_path=temp_dir,
|
| 97 |
base_size=1024,
|
| 98 |
image_size=640,
|
| 99 |
crop_mode=True,
|
| 100 |
-
save_results=False
|
| 101 |
)
|
| 102 |
print(f"Inference completed. Result type: {type(result)}")
|
| 103 |
print(f"Result value: {result}")
|
|
|
|
| 93 |
self.tokenizer,
|
| 94 |
prompt=prompt,
|
| 95 |
image_file=image_path, # Pass the PIL Image object directly
|
| 96 |
+
#output_path=temp_dir,
|
| 97 |
base_size=1024,
|
| 98 |
image_size=640,
|
| 99 |
crop_mode=True,
|
| 100 |
+
#save_results=False
|
| 101 |
)
|
| 102 |
print(f"Inference completed. Result type: {type(result)}")
|
| 103 |
print(f"Result value: {result}")
|