File size: 277 Bytes
e657366
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from handler import EndpointHandler

# init handler
my_handler = EndpointHandler(path=".")

# prepare sample payload
payload = {"input": "Lowfi hiphop with deep bass"}

# test the handler
pred=my_handler(payload)


with open("generated_audio.wav", "wb") as f:
    f.write(pred)