gatortron-base / test_handler.py
Zigla's picture
Upload folder using huggingface_hub
62a40cd verified
from handler import EndpointHandler
import json
# Initialize handler with model directory
handler = EndpointHandler(model_dir='.')
# Create test input data
test_data = {
"inputs": "Bone scan: Negative for distant metastasis."
}
# Process through handler
result = handler(test_data)
# Print formatted results
print("Test Results:")
print(json.dumps(result, indent=2))