lang-id-voxlingua107-ecapa / test_handler_url.py
apenasissso's picture
process from file and fix short audios
7274bc5
raw
history blame contribute delete
517 Bytes
import json
from handler import EndpointHandler
# init handler
my_handler = EndpointHandler()
import os
# Specify the folder path here
folder_path = (
"/Users/apenasisso/pl/pl-bots/notebooks/analytics/data/elevenlabs_analysis"
)
# List all files in the folder
holiday_payload = {
"inputs": "https://pl-bots-public-media.s3.amazonaws.com/5511996969344_093275df-8324-4425-be0a-6d933bbcd896.mp3"
}
# test the handler
payload = my_handler(holiday_payload)
# show results
print("holiday_payload", payload)