musicgen-small / test.py
pbotsaris's picture
updated handler to return audio base64 strings
ee4f8f7
raw
history blame contribute delete
No virus
260 Bytes
from handler import EndpointHandler
# init handler
print('init handler')
my_handler = EndpointHandler(path=".")
p = {"inputs": "I am quite excited how this will turn out", "duration": 2}
print('calling handler')
pred=my_handler(p)
print("done")
print(pred)