lang-id-voxlingua107-ecapa / test_handler.py
apenasissso's picture
Ensure last chunk is 10 seconds long
2ca4eb5
raw
history blame
370 Bytes
from handler import EndpointHandler
# init handler
my_handler = EndpointHandler()
# prepare sample payload
holiday_payload = {
"inputs": "https://pl-bots-public-media.s3.amazonaws.com/14153496170_fcc9fd77-7159-4777-b008-4360bc2b5f84.mp3"
}
# test the handler
holiday_payload = my_handler(holiday_payload)
# show results
print("holiday_payload", holiday_payload)