File size: 391 Bytes
f0386c6 |
1 2 3 4 5 6 7 8 9 10 |
from handler import EndpointHandler
from datasets import load_dataset
# init handler
my_handler = EndpointHandler(path=".")
# print(type(sample["data"]))
prediction = my_handler({"inputs": "/Users/lesliejones-dove/Desktop/projects/Whisper/whisperx/whisperCustomHandler/Saffored_short.wav"})
# /Users/lesliejones-dove/Desktop/projects/Whisper/whisperx/whisperCustomHandler
print(prediction) |