File size: 310 Bytes
3e6a512
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from handler import EndpointHandler
from pathlib import Path


p = Path(__file__).with_name('pytorch_model.bin')
filename = p.absolute()
my_handler = EndpointHandler(path=filename)

payload = {"inputs": "contact.wav"}

transcription=my_handler(payload)

print("here is the transcription")
print(transcription)